mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[map] Adjust resizing criteria
This commit is contained in:
parent
f04d08b883
commit
1fa4b41531
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ struct hb_hashmap_t
|
|||
bool set_with_hash (KK&& key, uint32_t hash, VV&& value, bool is_delete=false)
|
||||
{
|
||||
if (unlikely (!successful)) return false;
|
||||
if (unlikely ((occupancy + occupancy / 2) >= mask && !resize ())) return false;
|
||||
if (unlikely ((occupancy + occupancy) >= mask && !resize ())) return false;
|
||||
item_t &item = item_for_hash (key, hash);
|
||||
|
||||
if (is_delete && !(item == key))
|
||||
|
|
Loading…
Add table
Reference in a new issue