Pack nsEditor better

RESOLVED FIXED in mozilla15

Status

()

Core
Editor
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Ehsan, Assigned: Ehsan)

Tracking

unspecified
mozilla15
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [MemShrink])

Attachments

(1 attachment)

I have a patch which reduces sizeof(nsEditor) from 296 to 280 on 64-bit platforms.
Created attachment 617780 [details] [diff] [review]
Patch (v1)

http://tbpl.mozilla.org/?tree=Try&rev=4f2154cdaebf
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #617780 - Flags: review?(roc)
How many nsEditor objects are we likely to have live at once?

Comment 3

5 years ago
Try run for 4f2154cdaebf is complete.
Detailed breakdown of the results available here:
    https://tbpl.mozilla.org/?tree=Try&rev=4f2154cdaebf
Results (out of 73 total builds):
    success: 56
    warnings: 7
    failure: 10
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/eakhgari@mozilla.com-4f2154cdaebf
Attachment #617780 - Flags: review?(roc) → review+
(In reply to Nicholas Nethercote [:njn] from comment #2)
> How many nsEditor objects are we likely to have live at once?

Currently, one per textarea element on the page, one per <input type=text> if you've interacted with them (by focusing/typing/etc) or if the page script does some special things (because the nsEditor for those are initialized lazily), one per any text box in XUL documents, and one per HTML document which has an editable section.
https://hg.mozilla.org/projects/birch/rev/3e6ca2158274
Target Milestone: --- → mozilla15
And backed out, since we treat warnings as errors!
Relanded: https://hg.mozilla.org/projects/birch/rev/e1f732215854
https://hg.mozilla.org/mozilla-central/rev/e1f732215854
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.