Closed Bug 1248521 Opened 7 years ago Closed 7 years ago

Pack PrefHashEntry better

Categories

(Core :: Preferences: Backend, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(1 file)

PrefHashEntry has sub-optimal field ordering.
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.
Attachment #8719653 - Flags: review?(nfroyd)
Attachment #8719653 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/f9f9d3a5a330
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.