[BasicContainers] Make _HTable nonfrozen and most of its operations noninlinable

This is a nongeneric type, so it makes sense to see if Swift has matured enough to use opaque/resilient types in high-performance contexts. It would be ideal if the core hash table implementation would remain flexible.

We may need to sprinkle some effect attributes over these.
This commit is contained in:
Karoy Lorentey committed 2026-02-19 17:56:22 -08:00
1 parent 0cf34cc3a9
commit a1902c30aa
7 files changed
+40 -64

No files matched your search

@@ -54,23 +54,11 @@ extension _HTable {
/// The numerator of the maximum hash table load factor.
@_transparent
internal static var _maxLFNum: UInt {
#if COLLECTIONS_NO_ROBIN_HOOD_HASHING
3
#else
7
#endif
}
internal static var _maxLFNum: UInt { 7 }
/// The denominator of the maximum hash table load factor.
@_transparent
internal static var _maxLFDenom: UInt {
#if COLLECTIONS_NO_ROBIN_HOOD_HASHING
4
#else
8
#endif
}
internal static var _maxLFDenom: UInt { 8 }
/// The numerator of the minimum hash table load factor.
@_transparent