_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:
Karoy Lorentey committed 2023-03-20 13:12:09 -07:00
1 parent 8c8cb5622b
commit 67a149da6a
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 }