mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 16:50:38 +00:00
[map] Micro-optimize iteration
Make is_real() faster (removes a shift). is_used() gets inlined so is not slowed down by this change.
This commit is contained in:
parent
9dbea6071a
commit
be0cec288b
1 changed files with 2 additions and 2 deletions
|
@ -68,13 +68,13 @@ struct hb_hashmap_t
|
|||
struct item_t
|
||||
{
|
||||
K key;
|
||||
uint32_t is_used_ : 1;
|
||||
uint32_t is_real_ : 1;
|
||||
uint32_t is_used_ : 1;
|
||||
uint32_t hash : 30;
|
||||
V value;
|
||||
|
||||
item_t () : key (),
|
||||
is_used_ (false), is_real_ (false),
|
||||
is_real_ (false), is_used_ (false),
|
||||
hash (0),
|
||||
value () {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue