-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Perf] User story 1: Time lags navigating through different app views after log in when user has a lot of sent/received messages #2852
Comments
Thanks for this @Serhy! Will try to reproduce tomorrow. |
Able to reproduce on iPhone X, recent develop build.
Suspected culprit: realm loading of messages into memory cc @janherich FYI |
Did some further investigation to see where problem is. Rough notesOn iPhone 6s simulator on latest develop. A New chat
360ms: add-contacts B Same chat, ~20 messages:~100 events, same big ones: add-contacts, initialize-chats, choose-predefined-exanpable-height But a bunch in ~100ms range, most notably update-message-status Filtering by events it seems liek update-message-status happens for every single message, ~20+ events, and it ranges from 20ms to 160ms, so at 50ms average that's 1s right there. Plus after each update-message-status there is incoming-message, only about 5ms though. Login takes ~9s, loading of messages instant C Same chat, ~50 messages:14s to login Update-message-status ranging from 12ms to 200ms, and ~50 of them I(+ small incoming message). ConclusionThree problems
|
@oskarth I investigated the issue and here are my findings: |
One more easy/fast way to reproduce the issue:
|
Workaround, doesn't address underlying problem at all: #2941 Root problem: @janherich and @dmitryn are looking into it AFAIK. What do you guys think about splitting it into receiving / sending problem? Since events etc are different. And maybe if there's a 3rd problem. |
Also see #2941 (comment) |
App freezes when a lot unread messages come in background (~100 in my case) Expected behaviorapp is responsive; chats are synchronised; Actual behaviorapp is unresponsive; only part of messages are synchronised (17 in my case) ReproductionPrecondition:
Additional InformationNoticed that phone temperature increased from 28,7 to 33,3 degrees during 6 short sessions (up to 10 min each).
LogsTF session (after 6 relaunch): https://app.testfairy.com/projects/4803622-status/builds/7462315/sessions/8/?accessToken=y2XoMALLYD1Bc-MNvGRl7O/AqeU |
@janherich it shouldn't be closed, I added comment here, it is reproducible in build with PR as well as in develop |
@churik My bad, the issue was automatically closed because the related PR was merged. |
|
Tested this with latest release version (Android: http://artifacts.status.im:8081/artifactory/nightlies-local/im.status.ethereum-132082.apk Unfortunately, I can't say it became better. Same with iPhoneX. |
@Serhy Can
be reproduced on 0.9.12? What is behavior there? |
On 0.9.12 it looks really well. I can't say this issue is a problem on 0.9.12. With >150 messages after log in on 0.9.12 I almost don't see lags - navigation through different screens not laggy (well lags are up to 1 second) on Samsung J7 (same device used when reported the issue) |
Type: Bug
Summary: When user logs in into account, application becomes unresponsive for some time. It depends from how many messages user sent or received - more messages cause more time for app to hung up.
It's also visible that application retrieves all the messages user sent/received in chats it had before log out.
For example, in my case with Samsung J7 I had user with about 150 received messages. With such amount, when I logged out and logged back in - it took ~3 minutes since I could with no lags navigate through different views (chats, Profile, Wallet etc). Below TF session session attached.
On video it's especially visible when Profile screen hides during 01:30-02:00.
On iPhone X it's also visible (50 sent messages is enough to have before log in to account)
TF logs: https://app.testfairy.com/projects/4803622-status/builds/7397034/sessions/4/?accessToken=DCNt-8FbqXifdFksvbCKKRoFwlw
Expected behavior
No time lags while navigating through different app screens after user logged in
Actual behavior
Time lags while navigating through different app screens after user logged in
Reproduction
Precondition: User exist and has more than 100 messages sent/received (actually it's even enough 20 messages - depends from device)
Additional Information
The text was updated successfully, but these errors were encountered: