small tweaks

This commit is contained in:
Stjepan Glavina 2020-02-04 11:58:51 +01:00
parent 0f2973b669
commit ef39c48627
2 changed files with 1 additions and 3 deletions

View File

@ -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.

View File

@ -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(|| {