[map] Add TODO item

This commit is contained in:
Behdad Esfahbod 2022-05-26 11:07:21 -06:00
parent fc5739ea90
commit de33ef61b7
1 changed files with 1 additions and 0 deletions

View File

@ -242,6 +242,7 @@ struct hb_hashmap_t
uint32_t hash () const
{
uint32_t h = 0;
/* TODO: Speed-up since we have the hash of the key already in the item. */
for (auto pair : iter ())
h ^= (hb_hash (pair.first) * 31) + hb_hash (pair.second);
return h;