Use HashMap instead of BTreeMap where possible
This shrinks the kernel from 905840 bytes to 862408 bytes.
This commit is contained in:
@@ -18,6 +18,7 @@ struct Handle {
|
||||
flags: usize,
|
||||
}
|
||||
|
||||
// Using BTreeMap as hashbrown doesn't have a const constructor.
|
||||
static HANDLES: RwLock<BTreeMap<usize, Handle>> = RwLock::new(BTreeMap::new());
|
||||
|
||||
/// Add to the input queue
|
||||
|
||||
Reference in New Issue
Block a user