mirror of https://github.com/stjepang/smol
small tweaks
This commit is contained in:
parent
0f2973b669
commit
ef39c48627
|
@ -1,7 +1,7 @@
|
|||
## Features
|
||||
|
||||
* Small - Under 1000 lines of code!
|
||||
* Fast - TODO
|
||||
* Fast - Competitive with async-std and Tokio.
|
||||
* Safe - Written fully in safe Rust.
|
||||
* Portable - Works on Linux, macOS, iOS, and Windows.
|
||||
* Lightweight - Built from scratch, hooks directly into epoll/kqueue/wepoll.
|
||||
|
|
|
@ -15,8 +15,6 @@ use once_cell::sync::Lazy;
|
|||
use slab::Slab;
|
||||
use socket2::{Domain, Protocol, Socket, Type};
|
||||
|
||||
// TODO: if we do lazy register (id: Option<usize>), can we beat tokio?
|
||||
|
||||
static EPOLL: Lazy<RawFd> = Lazy::new(|| epoll_create1(EpollCreateFlags::EPOLL_CLOEXEC).unwrap());
|
||||
|
||||
static ENTRIES: Lazy<Mutex<Slab<Arc<Entry>>>> = Lazy::new(|| {
|
||||
|
|
Loading…
Reference in New Issue