mirror of
https://github.com/apple/swift-collections
synced 2026-11-30 05:18:44 +00:00
wip
This commit is contained in:
1 parent
5592b93422
commit
ca0c7a28b9
5 files changed
+32
-8
No files matched your search
@@ -86,7 +86,7 @@ extension DynamicDeque where Element: ~Copyable {
|
||||
@inlinable
|
||||
internal mutating func _grow(to minimumCapacity: Int) {
|
||||
guard minimumCapacity > _capacity else { return }
|
||||
let c = Swift.max(minimumCapacity, 2 * _capacity)
|
||||
let c = Swift.max(minimumCapacity, 7 * _capacity / 4)
|
||||
_storage.resize(to: c)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user