Closed
Bug 721216
Opened 14 years ago
Closed 14 years ago
Bitmap compression on main thread causes the tab strip to take a long time to appear
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox11 fixed, firefox12 fixed, fennec11+)
RESOLVED
FIXED
Firefox 12
People
(Reporter: pcwalton, Assigned: blassey)
References
Details
(Keywords: perf, Whiteboard: [inbound])
Attachments
(1 file)
|
2.32 KB,
patch
|
pcwalton
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
It can take a few seconds for the tabs to appear when the tab strip button is tapped. This is due to this call stack:
* Bitmap.nativeCompress
* Bitmap.compress
* GeckoApp.getAndProcessThumbnailForTab
* Tabs.refreshThumbnails
* TabsTray.onCreate
| Assignee | ||
Comment 1•14 years ago
|
||
Attachment #591638 -
Flags: review?(pwalton)
| Reporter | ||
Comment 2•14 years ago
|
||
This helps significantly. It still takes too long to open the tab strip (about a second), and switching tabs takes a long time as well, but those are separate bugs.
| Reporter | ||
Comment 3•14 years ago
|
||
Comment on attachment 591638 [details] [diff] [review]
patch
Review of attachment 591638 [details] [diff] [review]:
-----------------------------------------------------------------
r=me.
But can we put image decoding in a background thread so that it doesn't block the UI at all?
::: mobile/android/base/Tabs.java
@@ +221,5 @@
> + GeckoAppShell.getHandler().post(new Runnable() {
> + public void run() {
> + Iterator<Tab> iterator = tabs.values().iterator();
> + while (iterator.hasNext())
> + GeckoApp.mAppContext.getAndProcessThumbnailForTab(iterator.next());
nit: {}
Attachment #591638 -
Flags: review?(pwalton) → review+
| Assignee | ||
Comment 4•14 years ago
|
||
tracking-fennec: --- → 11+
Whiteboard: [inbound]
Comment 5•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 12
| Assignee | ||
Comment 7•14 years ago
|
||
Comment on attachment 591638 [details] [diff] [review]
patch
[Approval Request Comment]
Regression caused by (bug #):
User impact if declined:
Tab menu opens slowly
Testing completed (on m-c, etc.):
Risk to taking this patch (and alternatives if risky):
This patch depends on bug 721308 since it is possible to cause a crash with it alone. With both patches this is pretty safe.
Attachment #591638 -
Flags: approval-mozilla-aurora?
Comment 8•14 years ago
|
||
Comment on attachment 591638 [details] [diff] [review]
patch
[Triage Comment]
Mobile only - approved for Aurora.
Attachment #591638 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 9•14 years ago
|
||
status-firefox11:
--- → fixed
status-firefox12:
--- → fixed
Updated•5 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
•