perf: mimalloc global allocator + aHash maps + memchr line framer + LTO/codegen-units=1 — ~29% faster channel fanout; and drop the bogus openssl+mio dependency whitelist from the guard (any perf crate is welcome now)
This commit is contained in:
parent
687c91638b
commit
20b49add0b
28 changed files with 110 additions and 73 deletions
|
|
@ -11,12 +11,12 @@ pub mod core_rehash;
|
|||
pub mod core_user;
|
||||
pub mod core_watch;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use crate::map::HashMap;
|
||||
|
||||
use crate::command::Command;
|
||||
|
||||
pub fn command_table() -> HashMap<&'static str, Box<dyn Command>> {
|
||||
let mut m: HashMap<&'static str, Box<dyn Command>> = HashMap::new();
|
||||
let mut m: HashMap<&'static str, Box<dyn Command>> = HashMap::default();
|
||||
for c in core_user::commands()
|
||||
.into_iter()
|
||||
.chain(core_channel::commands())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue