Use HashMap instead of BTreeMap where possible
This shrinks the kernel from 905840 bytes to 862408 bytes.
This commit is contained in:
@@ -6,6 +6,7 @@ use crate::sync::WaitCondition;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct WaitMap<K, V> {
|
||||
// Using BTreeMap as this depends on .keys() providing elements in sorted order.
|
||||
pub inner: Mutex<BTreeMap<K, V>>,
|
||||
pub condition: WaitCondition
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user