mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A Dictionary.removeValue(forKey:) benchmark regressed 35% because recent changes in this PR caused an _UnsafeBitMap member to not be inlined in its implementation. (This was probably triggered by moving a method from Dictionary._Variant to _NativeDictionary.) Add @inline(__always) to _UnsafeBitMap members. While we’re at it, make _UnsafeBitMap @usableFromInline. It’s only public for testing purposes.
3.5 KiB
3.5 KiB