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:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user