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)

x86_64
All
defect
Not set
normal

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
(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?
(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.
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).  :/
I'm trying this idea again in conjuction with a patch that puts the a spring into the toolbar-menubar in bug 902632.
Whiteboard: [Australis:P?][Australis:M?]
Whiteboard: [Australis:P?][Australis:M?] → [Australis:P5][Australis:M?]
More WONTFIX fodder, Mike?
Flags: needinfo?(mconley)
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.