Closed
Bug 836170
Opened 12 years ago
Closed 12 years ago
[Contact]: Scrolling and Dragging in contact application is very slow.
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.1 fixed)
RESOLVED
FIXED
blocking-b2g | tef+ |
People
(Reporter: leo.bugzilla.gaia, Assigned: arcturus)
References
Details
(Keywords: perf, Whiteboard: [FFOS_perf] QARegressExclude)
Attachments
(1 file, 1 obsolete file)
Issue with Dragging:
Dragging in contact application is very slow. The Frames per second is very low when user drags on the contact loaded in contact list.
Issue with Scrolling:
Scrolling in contact application is very slow
1. When the application is launched and then try to scroll.
2. Revisit contact application from different application.
Please note that the above items are tested with 1000 contacts inserted using UI test application.
Comment 1•12 years ago
|
||
Alberto, we should use oncontactchange from bug 750768 to avoid reloadings.
Comment 2•12 years ago
|
||
(In reply to leo.bugzilla.gaia from comment #0)
> Issue with Dragging:
> Dragging in contact application is very slow. The Frames per second is very
> low when user drags on the contact loaded in contact list.
>
> Issue with Scrolling:
> Scrolling in contact application is very slow
> 1. When the application is launched and then try to scroll.
> 2. Revisit contact application from different application.
>
> Please note that the above items are tested with 1000 contacts inserted
> using UI test application.
Hi leo. Has this test have done with the patch for Bug 835742 or with master? That patch should fix the 2nd issue, as we are not repainting by chunks when revisiting the app, so the scrolling should be fine. Could you please give it a try, please?
Regarding the dragging issue, I don't fully understand what you mean by dragging a contact.
I guess both issues are only when loading the app. As soon as the 1000 contacts are loaded, everything works fine?
Comment 3•12 years ago
|
||
Hi Gregor,
How can I listen to changes made from another app? As far as I know, I can't receive those events if the contacts app is in background. Taking that in account, that event only would be useful making changes from the same Contacts app, and we already avoid reloading when changing something from the Contacts app.
May be I'm wrong with the fact that I can't receive that event in background. In that case, that would improve a lot.
Anyway, as per my previous comment, I think the main issue is when loading contacts first time. When revisiting the app should be fixed by the other patch.
Thanks!
(In reply to Gregor Wagner [:gwagner] from comment #1)
> Alberto, we should use oncontactchange from bug 750768 to avoid reloadings.
Updated•12 years ago
|
Assignee: nobody → alberto.pastor
Comment 4•12 years ago
|
||
(In reply to Alberto Pastor from comment #3)
> Hi Gregor,
>
> How can I listen to changes made from another app? As far as I know, I can't
> receive those events if the contacts app is in background. Taking that in
> account, that event only would be useful making changes from the same
> Contacts app, and we already avoid reloading when changing something from
> the Contacts app.
Oh that isn't very useful but it worked cross-process when I added this feature. It might have regressed when we turned off broadcasting messages via the message manager.
Let me fix it :)
Comment 5•12 years ago
|
||
(In reply to Gregor Wagner [:gwagner] from comment #4)
> (In reply to Alberto Pastor from comment #3)
> > Hi Gregor,
> >
> > How can I listen to changes made from another app? As far as I know, I can't
> > receive those events if the contacts app is in background. Taking that in
> > account, that event only would be useful making changes from the same
> > Contacts app, and we already avoid reloading when changing something from
> > the Contacts app.
>
> Oh that isn't very useful but it worked cross-process when I added this
> feature. It might have regressed when we turned off broadcasting messages
> via the message manager.
>
> Let me fix it :)
Okay, it's yours :)
Assignee: alberto.pastor → anygregor
blocking-b2g: tef? → tef+
Comment 6•12 years ago
|
||
@leo, I talked with Ben Francis about the Dragging issue. I'll take a look tomorrow.
Regarding scrolling when reloading the app should be already fixed with my patch, but will be even better when oncontactschange get's fixed :) (Thanks gregor!)
Scrolling when opening the app for the 1st time while the contacts are being loaded is something I can't find a solution until the cursor based contacts API lands. Happy to hear suggestions there.
Thanks!
(In reply to Alberto Pastor from comment #2)
> (In reply to leo.bugzilla.gaia from comment #0)
> > Issue with Dragging:
> > Dragging in contact application is very slow. The Frames per second is very
> > low when user drags on the contact loaded in contact list.
> >
>
> > Issue with Scrolling:
> > Scrolling in contact application is very slow
> > 1. When the application is launched and then try to scroll.
> > 2. Revisit contact application from different application.
> >
> > Please note that the above items are tested with 1000 contacts inserted
> > using UI test application.
>
> Hi leo. Has this test have done with the patch for Bug 835742 or with
> master? That patch should fix the 2nd issue, as we are not repainting by
> chunks when revisiting the app, so the scrolling should be fine. Could you
> please give it a try, please?
>
> Regarding the dragging issue, I don't fully understand what you mean by
> dragging a contact.
>
> I guess both issues are only when loading the app. As soon as the 1000
> contacts are loaded, everything works fine?
Comment 7•12 years ago
|
||
Marking status-b2g18 and status-b2g18-v1.0.0 as affected, please update the status to fixed once this is verified landed on v1-train/mozilla-b2g18 and v1.0.0/mozilla-b2g18_v_1_0_0
status-b2g18:
--- → affected
status-b2g18-v1.0.0:
--- → affected
Updated•12 years ago
|
Assignee: anygregor → francisco.jordano
Assignee | ||
Comment 8•12 years ago
|
||
Hi,
I've tested this with patch in comment 2, and the second issue as Alberto comments disappears.
What I'm not totally sure is what's the use case for 1.
Are we talking about the contact list it self while dragging or the contact detail?
Leo can you provide more information? Thanks!
Flags: needinfo?(leo.bugzilla.gaia)
Comment 9•12 years ago
|
||
(In reply to Francisco Jordano [:arcturus] from comment #8)
> Hi,
>
> I've tested this with patch in comment 2, and the second issue as Alberto
> comments disappears.
>
> What I'm not totally sure is what's the use case for 1.
>
> Are we talking about the contact list it self while dragging or the contact
> detail?
>
> Leo can you provide more information? Thanks!
I think it's basically the same problem. When starting the contacts app the first time (1) or when switching to the contacts app (2), the contact list scrolling is very slow for a few seconds if you have a test case with 1000 contacts.
Assignee | ||
Comment 10•12 years ago
|
||
(In reply to Gregor Wagner [:gwagner] from comment #9)
> (In reply to Francisco Jordano [:arcturus] from comment #8)
> > Hi,
> >
> > I've tested this with patch in comment 2, and the second issue as Alberto
> > comments disappears.
> >
> > What I'm not totally sure is what's the use case for 1.
> >
> > Are we talking about the contact list it self while dragging or the contact
> > detail?
> >
> > Leo can you provide more information? Thanks!
>
> I think it's basically the same problem. When starting the contacts app the
> first time (1) or when switching to the contacts app (2), the contact list
> scrolling is very slow for a few seconds if you have a test case with 1000
> contacts.
Hi the scrolling meanwhile the list is loading or switching to the contacts app from another app is the same problem and Alberto is already addressing it.
I would like to focus on the problem:
Issue with Dragging:
Dragging in contact application is very slow. The Frames per second is very low when user drags on the contact loaded in contact list.
We don't see this problem once the list is loaded, so we would like Leo to provide more feedback or STR :)
Thanks!
Reporter | ||
Comment 11•12 years ago
|
||
Francisco: Will you please tell me what exact information you need? As I understand Alberto has already discussed with Ben on dragging issue. Scrolling is basically a flick where as dragging is touch down and move up and down without lifting finger.
Flags: needinfo?(leo.bugzilla.gaia)
Assignee | ||
Comment 12•12 years ago
|
||
Attachment #711370 -
Flags: review?(alberto.pastor)
Assignee | ||
Comment 13•12 years ago
|
||
Comment on attachment 711370 [details]
WIP - No repaitingin when Contacts app coming back from background using onContactChange
Jose Manuel, since this change also modifies contacts could you take a look?
Thanks.
Attachment #711370 -
Flags: review?(jmcf)
Comment 14•12 years ago
|
||
Comment on attachment 711370 [details]
WIP - No repaitingin when Contacts app coming back from background using onContactChange
Monday and Tuesday I'm gonna be on a meeting and not very available to review this, as this is tef+ I'm asking Cristian to review, as he also knows Contacts code and can check for regressions in FB refreshes.
Attachment #711370 -
Flags: review?(jmcf) → review?(crdlc)
Assignee | ||
Comment 15•12 years ago
|
||
Attachment #711370 -
Attachment is obsolete: true
Attachment #711370 -
Flags: review?(crdlc)
Attachment #711370 -
Flags: review?(alberto.pastor)
Attachment #712484 -
Flags: review?(alberto.pastor)
Comment 16•12 years ago
|
||
sorry my previous comments on previous pull request? :)
Assignee | ||
Comment 17•12 years ago
|
||
Sorry Cristian, didn't realise, will check them :)
Updated•12 years ago
|
status-b2g18-v1.0.1:
--- → affected
Updated•12 years ago
|
Attachment #712484 -
Flags: review?(crdlc)
Assignee | ||
Comment 19•12 years ago
|
||
Hi guys,
new version of the PR updated with comments :)
Thanks!
Updated•12 years ago
|
Attachment #712484 -
Flags: review?(crdlc) → review+
Comment 20•12 years ago
|
||
Comment on attachment 712484 [details]
Pointer to GitHub PR 8045
Please Cantera take a look in your device. For me is OK although more eyes better
Attachment #712484 -
Flags: review?(jmcf)
Comment 21•12 years ago
|
||
Hi all,
Francisco, thanks for the hard work!
I posted in GH some problems with the patch. please let us know if you need help in fixing them
best
Assignee | ||
Comment 22•12 years ago
|
||
Jose Manuel can you r? again?
There is a new version hopefully fixing the errors you comment in Github
Updated•12 years ago
|
Attachment #712484 -
Flags: review?(alberto.pastor) → review+
Updated•12 years ago
|
Attachment #712484 -
Flags: review?(jmcf) → review+
Assignee | ||
Comment 23•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 24•12 years ago
|
||
I mean, landed here:
https://github.com/mozilla-b2g/gaia/commit/3859bf498196d2c7c640e38b2f9a76061d6a245b
Comment 25•12 years ago
|
||
Looks like this patch needs a manual rebase to land cleanly on v1.0.1.
Comment 26•12 years ago
|
||
Alberto is rebasing today.
Comment 27•12 years ago
|
||
(In reply to Michael Vines [:m1] [:evilmachines] from comment #25)
> Looks like this patch needs a manual rebase to land cleanly on v1.0.1.
(In reply to Dietrich Ayala (:dietrich) from comment #26)
> Alberto is rebasing today.
Is Alberto also going to be able to land it on v1-train?
Comment 28•12 years ago
|
||
Alberto was not able to get to it. I've pinged people in pst about getting this and the other Contacts perf bugs onto the right branches by EOD.
Comment 29•12 years ago
|
||
(In reply to Dietrich Ayala (:dietrich) from comment #26)
> Alberto is rebasing today.
Today is a relative concept, but yes, I finally got time to make it!
https://github.com/albertopq/gaia/tree/merge-836170
Regards,
Comment 30•12 years ago
|
||
v1-train: c48e9ebb04cf089f7db258509b8da76053fdfca4
v1.0.1: 065f2bd690f0cf92b1eb42a4125ee6323e5c6180
Reporter | ||
Comment 31•12 years ago
|
||
We have tested the dragging and flicking performance on leo device using the high speed camera. The result of the flicking is 54fps. But the result of the dragging is 40fps. We need to improve the performace of dragging over 50fps. So we reopen this issue.
Status: RESOLVED → REOPENED
blocking-b2g: tef+ → leo?
Resolution: FIXED → ---
Comment 32•12 years ago
|
||
Dup Bug 842217 ?
Comment 33•12 years ago
|
||
This bug is already landed code, let's leave it TEF+ and closed, and use bug 842217 for further improvements.
Status: REOPENED → RESOLVED
blocking-b2g: leo? → tef+
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•