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:
Nicholas Nethercote 2016-02-16 15:36:55 +11:00
parent 0eba54167e
commit 20fe44ef03

View File

@ -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;
};
/*