[map] Add TODO item

This commit is contained in:
Behdad Esfahbod committed 2022-05-30 05:54:20 -06:00
1 parent fc5739ea90
commit de33ef61b7
1 file changed
+1
+1
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;