Use HashMap instead of BTreeMap where possible

This shrinks the kernel from 905840 bytes to 862408 bytes.
This commit is contained in:
bjorn3
2023-12-12 22:23:16 +01:00
parent 78beae5c92
commit 2d065083df
28 changed files with 117 additions and 57 deletions
+1
View File
@@ -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
}