Closed Bug 734893 Opened 12 years ago Closed 12 years ago

LinkTextView in the tabs tray can be slow to draw

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(blocking-fennec1.0 +)

VERIFIED FIXED
Firefox 14
Tracking Status
blocking-fennec1.0 --- +

People

(Reporter: aaronmt, Assigned: sriram)

References

Details

Attachments

(1 file)

bug 708266 added a LinkTextView to the tabs-tray. On occasion, when opening the tabs tray, I notice that the link is slow to draw (~1/1.5s). In talks on IRC, it's possible that this due to blocking DB access. This bogs down responsiveness of the complete UI showing.

--
Tested via:

Samsung Galaxy Nexus (Android 4.0.2)
Nightly (03/12)
Mozilla/5.0 (Android; Mobile; rv:13.0) Gecko/13.0 Firefox/13.0a1
Why does this require a DB call at all?
(In reply to Paul [sabret00the] from comment #2)
> Why does this require a DB call at all?

So we can hide the link if you don't have any data to see
(In reply to Mark Finkle (:mfinkle) from comment #3)
> (In reply to Paul [sabret00the] from comment #2)
> > Why does this require a DB call at all?
> 
> So we can hide the link if you don't have any data to see

If a user has sync set up, they likely have data to see. If not there's nothing wrong with a screen saying "No tabs from other devices" or less desirable would be to assume there's tabs available until the query says otherwise. Both would be preferable over the current implementation.
"No tabs from other devices", would require the same db check.
After the fact, once you've already pulled up the screen.
Is this still happening on today's build for people?  I also noticed this 3 days ago, but today's nightly build seems much more quicker to draw.  (03-15-2012, galaxy nexus)
Nominating for poor performance perception in the product.
blocking-fennec1.0: --- → ?
Assignee: nobody → sriram
blocking-fennec1.0: ? → +
Attached patch PatchSplinter Review
This patch sends a simplified query to the database.
Also, the GeckoAsyncTask uses priority to do certain tasks with higher priority.
Attachment #606770 - Flags: review?(mark.finkle)
Comment on attachment 606770 [details] [diff] [review]
Patch

Looks ok to me. Asking Brad for a quick review on the GeckoAsyncTask change.

It would be nice to get performance feedback on this patch before it lands. Hopefully Tony or Aaron can test a build on their phones.
Attachment #606770 - Flags: review?(mark.finkle)
Attachment #606770 - Flags: review?(blassey.bugs)
Attachment #606770 - Flags: review+
Keywords: qawanted
Comment on attachment 606770 [details] [diff] [review]
Patch

Review of attachment 606770 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/base/GeckoAsyncTask.java
@@ +53,2 @@
>      public void execute(final Params... params) {
> +        Runnable r = new Runnable() {

move this Runnable out of the function:

UITaskRunnable implements Runnable {
  public void run() {
    ...
  }
}

public void execute(final Params... params) {
Attachment #606770 - Flags: review?(blassey.bugs) → review+
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/837da0646b7d
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
Keywords: qawanted
Links show instantly on Aurora 15.0a2 2012-06-09 and Nightly 16.0a1 2012-06-10 on the HTC Desire running Android 2.2. Marking the issue as verified.
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: