diff options
author | Sverker Eriksson <[email protected]> | 2015-11-13 18:12:32 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-11-27 19:28:37 +0100 |
commit | 4b4c3d525a06309b7e23c7c3ccf7a358bd0f33f3 (patch) | |
tree | 1ef9971987e1988b4e7f1f7d0771464745f8eb4d /erts/emulator/beam/erl_bif_unique.c | |
parent | 99e6213c0f0cebaa01f8310b6950a814cf4b21ee (diff) | |
download | otp-4b4c3d525a06309b7e23c7c3ccf7a358bd0f33f3.tar.gz otp-4b4c3d525a06309b7e23c7c3ccf7a358bd0f33f3.tar.bz2 otp-4b4c3d525a06309b7e23c7c3ccf7a358bd0f33f3.zip |
erts: Redesign grow/shrink thresholds of hash.c
1. Use load factor as indicator, not used buckets.
Used buckets is a bad indicator as it makes the situation even
worse with a bad hash function.
Set grow_threshold to load factor of 160% as it roughly corresponds
to the old 80% used bucket limit.
2. Never shrink table below initial size.
Diffstat (limited to 'erts/emulator/beam/erl_bif_unique.c')
0 files changed, 0 insertions, 0 deletions