From de33ef61b7f8ce231bad8aa0e644142e2c23a633 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 26 May 2022 11:07:21 -0600 Subject: [PATCH] [map] Add TODO item --- src/hb-map.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-map.hh b/src/hb-map.hh index 8990bd285..11dbe191c 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -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;