| author | |
| committer | |
| log | 660a50661b22b279fed548387d19ffcddb031b23 |
| tree | 6fec568fa26d0343f39fcb1f576c3f6a4885456e |
| parent | 9c3d7b628c0b32d7276e4dc33e2e6f306af87472 |
1 files changed, 2 insertions(+), 2 deletions(-)
src/hash_map.hpp+2-2| ... | ... | @@ -46,8 +46,8 @@ public: |
| 46 | 46 | _modification_count += 1; |
| 47 | 47 | internal_put(key, value); |
| 48 | 48 | |
| 49 | // if we get too full (80%), double the capacity | |
| 50 | if (_size * 5 >= _capacity * 4) { | |
| 49 | // if we get too full (60%), double the capacity | |
| 50 | if (_size * 5 >= _capacity * 3) { | |
| 51 | 51 | Entry *old_entries = _entries; |
| 52 | 52 | int old_capacity = _capacity; |
| 53 | 53 | init_capacity(_capacity * 2); |