mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
Base the allocation request on the currently occupied space, not the full capacity. The original code tended to lead to unnecessary doubling of the node size in each copy, until we exhaust the 32 bit capacity value. (Oops.)