Closed Bug 902627 Opened 11 years ago Closed 11 years ago

Try caching and importing special widget nodes instead of creating them every time

Categories

(Firefox :: Toolbars and Customization, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mconley, Assigned: mconley)

References

Details

CustomizableUI.createSpecialWidget creates and returns a document element. For the tpaint/ts_paint talos profile, there's a spring in the toolbar-menubar that needs to be created everytime.

I've been experimenting with making it so that after the first spring is created, we cache it, and do document.importNode on it instead of creating a new one.

Local testing is a little noisy, but it *might* gain us some time.

Baseline: https://tbpl.mozilla.org/?tree=Try&rev=cb1871ccc638
WIP Patch: https://tbpl.mozilla.org/?tree=Try&rev=8348c8194023
This is no longer necessary now that the spring has been removed from the talos localstore.rdf (bug 903044).
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.