Closed Bug 748223 Opened 12 years ago Closed 12 years ago

Pack nsEditor better

Categories

(Core :: DOM: Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

(Whiteboard: [MemShrink])

Attachments

(1 file)

I have a patch which reduces sizeof(nsEditor) from 296 to 280 on 64-bit platforms.
Attached patch Patch (v1)Splinter Review
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?
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
(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!
https://hg.mozilla.org/mozilla-central/rev/e1f732215854
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: