[map] Micro-optimize

This shows a speedup.
pull/4240/head
Behdad Esfahbod 2 years ago
parent 12b0680e60
commit 2655b7607c
  1. 2
      src/hb-map.hh

@ -215,7 +215,7 @@ struct hb_hashmap_t
if ((hb_is_same (K, hb_codepoint_t) || items[i].hash == hash) &&
items[i] == key)
break;
if (tombstone == (unsigned) -1 && items[i].is_tombstone ())
if (items[i].is_tombstone () && tombstone == (unsigned) -1)
tombstone = i;
i = (i + ++step) & mask;
}

Loading…
Cancel
Save