Closed
Bug 901657
Opened 11 years ago
Closed 11 years ago
contacts merge progress animation using CPU when hidden
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect, P1)
Tracking
(blocking-b2g:koi+)
RESOLVED
FIXED
blocking-b2g | koi+ |
People
(Reporter: bkelly, Assigned: bkelly)
References
Details
(Keywords: perf, Whiteboard: [c= p=2 s=2013.08.09 u=1.2])
Attachments
(2 files)
1.35 KB,
patch
|
Details | Diff | Splinter Review | |
107 bytes,
text/plain
|
jmcf
:
review+
|
Details |
I noticed today that our time to load the full reference-workload-heavy contact list went from less than 8.5 seconds up to over 9.7 seconds. Git bisecting showed that this was due to :
https://github.com/mozilla-b2g/gaia/commit/d6567edc44dea923914935b1f256c4fce67856fd
Looking at the code I don't see an obvious explanation for this. As far as I can tell all of these changes are outside of the contact list. We'll need to investigate further. This may be a requirement of the new feature or perhaps its something we can work around.
I'll post a patch with the code I am using to measure the time. I'd really like to setup an automated system to monitor the time so we can proactively detect changes.
Assignee | ||
Comment 1•11 years ago
|
||
This patch outputs times to logcat for both the above-the-fold event and full load from contactsAPI. The above-the-fold time is obviously important for showing a useable UI to the user quickly. The full load time dictates how soon we can use the letter group shortcuts to jump to the end of the list.
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
It appears that the app container is using a steady 25% CPU when idle after this change. Still need to investigate more.
Assignee | ||
Comment 3•11 years ago
|
||
This appears to be due to the pack-activity class animation running in the background. This occurs because the #throbber progress element is using visibility:hidden instead of display:none.
It seems there are two straightforward ways to handle this. Either switch to using display:none or only add the pack-activity class when the progress element is displayed.
Assignee | ||
Updated•11 years ago
|
Whiteboard: [ c= p=3 s=2013.08.23 ] → [ c= p=2 s=2013.08.23 ]
Assignee | ||
Updated•11 years ago
|
Summary: contacts full load regression after bug 897418 landed → contacts merge progress animation using CPU when hidden
Assignee | ||
Comment 4•11 years ago
|
||
This pull request fixes the issue by using the standard hide class instead of visibility:hidden.
Jose, requesting review from you because I believe Cristian is still on holiday and it would be nice to get this fixed soon.
Thanks!
Attachment #786288 -
Flags: review?(jmcf)
Comment 5•11 years ago
|
||
Comment on attachment 786288 [details]
Pull request at https://github.com/mozilla-b2g/gaia/pull/11377
good work and good catch!
thanks
Attachment #786288 -
Flags: review?(jmcf) → review+
Updated•11 years ago
|
blocking-b2g: --- → koi?
Assignee | ||
Comment 6•11 years ago
|
||
Thanks Jose! Merged:
https://github.com/mozilla-b2g/gaia/commit/a3630e49320424d63f5de0c57d48fde1494569b2
Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Whiteboard: [ c= p=2 s=2013.08.23 ] → [c= p=2 s=2013.08.09]
Updated•11 years ago
|
blocking-b2g: koi? → koi+
Updated•11 years ago
|
Priority: -- → P1
Whiteboard: [c= p=2 s=2013.08.09] → [c= p=2 s=2013.08.09 u=1.2]
You need to log in
before you can comment on or make changes to this bug.
Description
•