Closed
Bug 897614
Opened 11 years ago
Closed 11 years ago
Cache IDs of widgets that we cannot find with findWidgetInWindow to fast-path searching in later windows
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mconley, Assigned: mconley)
References
Details
(Whiteboard: [Australis:P5][Australis:M?])
If we search for a widget, and we cannot find it in a window, we can cache the fact that we missed it and shortcut for future windows. We remove items from this cache when they get created by createWidget. We might need to special-case Private Browsing windows (since we've made it so that some widgets cannot appear in PB windows). But I've pushed a patch that does the above just to see if it gets us any tpaint wins. https://tbpl.mozilla.org/?tree=Try&rev=f8b3573f328a
Assignee | ||
Comment 1•11 years ago
|
||
Base build for reference: https://tbpl.mozilla.org/?tree=Try&rev=4a16fe238fcf
Comment 2•11 years ago
|
||
(In reply to Mike Conley (:mconley) from comment #0) > We remove items from this cache when they get created by createWidget. That's not the only way to create customizable items, is it? For instance, elements could be appended to the palette, couldn't they?
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #2) > (In reply to Mike Conley (:mconley) from comment #0) > > We remove items from this cache when they get created by createWidget. > > That's not the only way to create customizable items, is it? For instance, > elements could be appended to the palette, couldn't they? I suppose - and we can address this case if it turns out that this patch gains us anything.
Assignee | ||
Comment 4•11 years ago
|
||
So this patch's results can be see in row 143 of the spreadsheet. https://docs.google.com/a/mozilla.com/spreadsheet/ccc?key=0Asj8iLTl0K0UdDcxemJEWVVXWTlKek1wR09iS2FsOXc#gid=0 While it's possible that we saw a little bit of win here amongst the noise, it's not moving the needle where it counts (XP tpaint). :/
Assignee | ||
Comment 5•11 years ago
|
||
I'm trying this idea again in conjuction with a patch that puts the a spring into the toolbar-menubar in bug 902632.
Updated•11 years ago
|
Whiteboard: [Australis:P?][Australis:M?]
Updated•11 years ago
|
Whiteboard: [Australis:P?][Australis:M?] → [Australis:P5][Australis:M?]
Assignee | ||
Comment 7•11 years ago
|
||
Indeed!
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(mconley)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•