diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-03-07 13:11:01 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-03-07 14:01:01 +0000 |
| commit | ba02498576b634883bb9a0e48377f7383bc86289 (patch) | |
| tree | 84b37e5941f29162f344015a7947cf8c96e87321 /src/hash_map.hh | |
| parent | f3fdc2438362d6ec46c6e6989fc03c041dfde47a (diff) | |
Expand a bit the hash map profiling code
Diffstat (limited to 'src/hash_map.hh')
| -rw-r--r-- | src/hash_map.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hash_map.hh b/src/hash_map.hh index 47a50cd8..ab7b5e75 100644 --- a/src/hash_map.hh +++ b/src/hash_map.hh @@ -85,7 +85,6 @@ struct HashIndex void ordered_fix_entries(int index) { - // Fix entries index for (auto& entry : m_entries) { if (entry.index >= index) @@ -118,7 +117,7 @@ struct HashIndex private: size_t m_count = 0; - float m_max_fill_rate = 0.5f; + static constexpr float m_max_fill_rate = 0.9f; Vector<Entry, domain> m_entries; }; |
