Last Comment Bug 748223 - Pack nsEditor better
: Pack nsEditor better
Product: Core
Classification: Components
Component: Editor (show other bugs)
: unspecified
: x86 Mac OS X
-- normal (vote)
: mozilla15
Assigned To: :Ehsan Akhgari
: Makoto Kato [:m_kato]
Depends on:
  Show dependency treegraph
Reported: 2012-04-23 21:44 PDT by :Ehsan Akhgari
Modified: 2012-04-24 18:11 PDT (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Patch (v1) (7.13 KB, patch)
2012-04-23 21:55 PDT, :Ehsan Akhgari
roc: review+
Details | Diff | Splinter Review

Description User image :Ehsan Akhgari 2012-04-23 21:44:38 PDT
I have a patch which reduces sizeof(nsEditor) from 296 to 280 on 64-bit platforms.
Comment 2 User image Nicholas Nethercote [:njn] 2012-04-23 22:51:05 PDT
How many nsEditor objects are we likely to have live at once?
Comment 3 User image Mozilla RelEng Bot 2012-04-24 01:45:24 PDT
Try run for 4f2154cdaebf is complete.
Detailed breakdown of the results available here:
Results (out of 73 total builds):
    success: 56
    warnings: 7
    failure: 10
Builds (or logs if builds failed) available at:
Comment 4 User image :Ehsan Akhgari 2012-04-24 09:03:31 PDT
(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.
Comment 6 User image :Ehsan Akhgari 2012-04-24 09:21:03 PDT
And backed out, since we treat warnings as errors!
Comment 7 User image :Ehsan Akhgari 2012-04-24 10:13:02 PDT

Note You need to log in before you can comment on or make changes to this bug.