mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00: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
1e18852d87
commit
b66ae9e8e5
@ -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