mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
- Cleaned up some comments - Removed the "is power of two" check from optimizedCapacity since the * 5 / 3 is unlikely to end up with a power of two, so it's a wasted check the majority of the time - Made ensureCapacity/ensureCapacityExact increment the modification count if they resize the hash map so that we can catch resizes while iterating, which would likely break the iterator state
623 lines
22 KiB
623 lines
22 KiB