2024-09-07 12:32:02 +10:00
|
|
|
/// A hashmap optimized for small sets of size less than 32 with a fast hash implementation.
|
|
|
|
///
|
|
|
|
/// Used widely for shader reflection.
|
2024-02-15 11:22:25 +11:00
|
|
|
pub type FastHashMap<K, V> =
|
|
|
|
halfbrown::SizedHashMap<K, V, core::hash::BuildHasherDefault<rustc_hash::FxHasher>, 32>;
|
2024-02-15 09:54:49 +11:00
|
|
|
|
2024-09-04 15:53:48 +10:00
|
|
|
/// A string with small string optimizations up to 23 bytes.
|
|
|
|
pub type ShortString = smartstring::SmartString<smartstring::LazyCompact>;
|