1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

Optimization: replace HashSet uses with AHashSet

This commit is contained in:
Emil Ernerfeldt
2021-10-09 14:15:45 +02:00
parent 4dcdd014d6
commit 22a3a75eb5
6 changed files with 19 additions and 20 deletions

View File

@@ -24,7 +24,7 @@ pub struct Mutex<T>(parking_lot::Mutex<T>);
#[cfg(debug_assertions)]
thread_local! {
static HELD_LOCKS_TLS: std::cell::RefCell<std::collections::HashSet<*const ()>> = std::cell::RefCell::new(std::collections::HashSet::new());
static HELD_LOCKS_TLS: std::cell::RefCell<ahash::AHashSet<*const ()>> = std::cell::RefCell::new(ahash::AHashSet::new());
}
#[cfg(feature = "multi_threaded")]