mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
_BString: Set better max node size in Release builds
Also, adjust minimum node size calculation to match classic B-trees.
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -47,7 +47,13 @@ extension _BString.Summary: CustomStringConvertible {
|
||||
@available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *)
|
||||
extension _BString.Summary: _RopeSummary {
|
||||
@inline(__always)
|
||||
static var maxNodeSize: Int { 10 }
|
||||
static var maxNodeSize: Int {
|
||||
#if DEBUG
|
||||
return 10
|
||||
#else
|
||||
return 15
|
||||
#endif
|
||||
}
|
||||
|
||||
@inline(__always)
|
||||
static var nodeSizeBitWidth: Int { 4 }
|
||||
|
||||
Reference in new issue
Block a user