Closed Bug 1248521 Opened 10 years ago Closed 10 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+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: