Closed
Bug 961954
Opened 11 years ago
Closed 11 years ago
GeckoApp.onCreatePanelMenu is called during startup
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 30
People
(Reporter: mfinkle, Assigned: wesj)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
GeckoApp.onCreatePanelMenu is called from GeckoApp.initialize() for SDK >= 11 here:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoApp.java#1432
GeckoApp.onCreatePanelMenu accounts for 8.2% (194ms) of startup on my Galaxy Nexus.
We moved the call to initialize() for some reason in bug 886528. Maybe we went too far.
Comment 1•11 years ago
|
||
Might be worth just testing this: stuff it last in the background thread initializers, and fast-init it when loading the menu.
Where's most of the time coming from? Looking up views by ID?
Hardware: ARM → All
Reporter | ||
Comment 2•11 years ago
|
||
It calls BrowserApp.onCreateOptionsMenu, which takes most of it's time in GeckoMenuInflater.inflate -> GeckoMenuInflater.parseMenu
Assignee | ||
Comment 3•11 years ago
|
||
This just removes these calls. I still want to make sure that we invalidate the menu at some point, so I moved that into onMenuOpened. I also moved the event handlers into BrowserApp since they're not used by any one else (Ideally we'd move all this code into the menu code, but that's a bigger refactor).
Attachment #8369744 -
Flags: review?(mark.finkle)
Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8369744 [details] [diff] [review]
Patch v1
I'd like you to test a few situations:
* Make sure a menu item correctly toggles (Bookmark and Request Desktop, for example)
* Test on Gingerbread, ICS and newer phones, since invalidateOptionsMenu is a 11+ API and menus worked differently before it.
Attachment #8369744 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Grr. Forgot to test on a device with a software menu button. Or... didn't realize that they were different. Pushed this to try:
https://tbpl.mozilla.org/?tree=Try&rev=dea89e3ff9c0
Attachment #8369744 -
Attachment is obsolete: true
Attachment #8370370 -
Flags: review?(mark.finkle)
Reporter | ||
Updated•11 years ago
|
Attachment #8370370 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Assignee: nobody → wjohnston
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 30
Reporter | ||
Comment 10•11 years ago
|
||
GeckoApp.onCreatePanelMenu is no longer in the startup profile.
Reporter | ||
Comment 11•11 years ago
|
||
Let this bake a few more days, but we should consider moving this to Aurora. It's still early in the cycle.
Comment 12•11 years ago
|
||
This might have caused regression bug 972327. Please convince me otherwise.
Assignee | ||
Comment 13•11 years ago
|
||
Nope. It almost certainly caused that.
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•