Pack PrefHashEntry better

RESOLVED FIXED in Firefox 47

Status

()

RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: njn, Assigned: njn)

Tracking

unspecified
mozilla47
Points:
---

Firefox Tracking Flags

(firefox47 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
PrefHashEntry has sub-optimal field ordering.
(Assignee)

Comment 1

3 years ago
Created attachment 8719653 [details] [diff] [review]
Pack PrefHashEntry better

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+

Comment 3

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/f9f9d3a5a330
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
status-firefox47: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.