mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
[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:
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
|
||||
|
||||
Reference in new issue
Block a user