From cc9651d55d4909ba3baed8b089ee44f8a2a6c270 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Jun 2023 12:20:48 -0600 Subject: [PATCH] [map] Micro-optimize --- src/hb-map.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-map.hh b/src/hb-map.hh index e96f29c4e..ba06839d0 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -68,14 +68,14 @@ struct hb_hashmap_t struct item_t { K key; - uint32_t hash : 30; uint32_t is_used_ : 1; uint32_t is_tombstone_ : 1; + uint32_t hash : 30; V value; item_t () : key (), - hash (0), is_used_ (false), is_tombstone_ (false), + hash (0), value () {} bool is_used () const { return is_used_; }