mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1248521 - Pack PrefHashEntry better. r=froydnj.
This reduces sizeof(PrefHashEntry) from 40 bytes to 32 bytes on 64-bit platforms, which reduces the entry storage of |gHashTable| from 160 KiB to 128 KiB in every process.
This commit is contained in:
parent
0eba54167e
commit
20fe44ef03
@ -30,10 +30,10 @@ typedef union
|
||||
|
||||
struct PrefHashEntry : PLDHashEntryHdr
|
||||
{
|
||||
uint16_t flags; // This field goes first to minimize struct size on 64-bit.
|
||||
const char *key;
|
||||
PrefValue defaultPref;
|
||||
PrefValue userPref;
|
||||
uint16_t flags;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user