Closed
Bug 787512
Opened 12 years ago
Closed 12 years ago
Pack bits in nsListenerStruct better on Windows
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: khuey, Assigned: khuey)
References
Details
Attachments
(1 file)
907 bytes,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
The boolean we added in Bug 687332 pushes the struct size from 16 to 17 bytes, which jemalloc rounds up to 32. There's no reason the booleans can't fit inside 16 bytes, so we're using double the memory we should for this struct.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #657383 -
Flags: review?(bugs)
Comment 2•12 years ago
|
||
Comment on attachment 657383 [details] [diff] [review] Patch Review of attachment 657383 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/events/src/nsEventListenerManager.h @@ +40,5 @@ > struct nsListenerStruct > { > nsRefPtr<nsIDOMEventListener> mListener; > uint32_t mEventType; > nsCOMPtr<nsIAtom> mTypeAtom; Would swapping around those two save some on 64-bit too?
Assignee | ||
Comment 3•12 years ago
|
||
Probably, but that's not what this bug is about.
Comment 4•12 years ago
|
||
Comment on attachment 657383 [details] [diff] [review] Patch r=me if you made sure this actually makes Windows to pack this stuff in a sane way.
Attachment #657383 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Yes, I did. I do meet basic standards of competency. :-P
Assignee | ||
Comment 6•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/059f341beaad
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in
before you can comment on or make changes to this bug.
Description
•