Closed Bug 959634 Opened 10 years ago Closed 10 years ago

TabsPanel.<init> can be expensive during startup

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 909550

People

(Reporter: mfinkle, Unassigned)

References

Details

(Keywords: perf)

Even though the TabsPanel is not shown during startup, it is initialized and accounts for 2.5% (~130ms).

Let's investigate why we are initializing the TabsPanel during startup. Make sure we don't regress things like bug 848070.

profile: http://people.mozilla.org/~mfinkle/fennec/profiles/nexuss-home-startup.trace
Also shows up in GalaxyNexus startup profile (~5%, ~140ms)

profile: http://people.mozilla.org/~mfinkle/fennec/profiles/galaxynexus-home-startup.trace
We include the TabsPanel in the gecko_app layout:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/layout/gecko_app.xml#11

We can probably be lazier about the things we're doing in the TabsPanel constructor though. We're doing a lot in there:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/TabsPanel.java#68
Blocks: 959776
Shilpan started work in bug 909550
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.