mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Optimize: more inlining and more use of AHashMap
No real gains, but it didn't hurt either
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
use std::{
|
||||
collections::{BTreeMap, HashMap},
|
||||
collections::BTreeMap,
|
||||
hash::{Hash, Hasher},
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
use ahash::AHashMap;
|
||||
|
||||
use crate::{
|
||||
mutex::Mutex,
|
||||
text::{
|
||||
@@ -390,7 +392,7 @@ struct CachedGalley {
|
||||
struct GalleyCache {
|
||||
/// Frame counter used to do garbage collection on the cache
|
||||
generation: u32,
|
||||
cache: HashMap<LayoutJob, CachedGalley>,
|
||||
cache: AHashMap<LayoutJob, CachedGalley>,
|
||||
}
|
||||
|
||||
impl GalleyCache {
|
||||
|
||||
Reference in New Issue
Block a user