Android app UI is slow when recieving new messages #16613
Replies: 21 comments
-
also i can see this in the logs
|
Beta Was this translation helpful? Give feedback.
-
after i removed filters for contacts , app is much responsive but still when i see in logs |
Beta Was this translation helpful? Give feedback.
-
so there are two issues:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
takes |
Beta Was this translation helpful? Give feedback.
-
takes |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
so |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
hm one thought about dispatch-later is that it visible when there are heavy computations in views and subs, but if we use dispatch we have these calculations only once when all dispatches are handled |
Beta Was this translation helpful? Give feedback.
-
i feel like using subscriptions for chat view is kinda wrong ? |
Beta Was this translation helpful? Give feedback.
-
parametrised subscriptions doesn't look good, like https://github.com/status-im/status-react/blob/f5488e1f61eb87c374a23a357d057a624a642e46/src/status_im/subs.cljs#L850 and https://github.com/status-im/status-react/blob/f5488e1f61eb87c374a23a357d057a624a642e46/src/status_im/subs.cljs#L1663 |
Beta Was this translation helpful? Give feedback.
-
worst case with background and contacts signal have been fixed, so I updated description and removed high priority and release labels |
Beta Was this translation helpful? Give feedback.
-
again UI freezing once per 30s on Android |
Beta Was this translation helpful? Give feedback.
-
separate issue for contacts #10287 |
Beta Was this translation helpful? Give feedback.
-
@flexsurfer is this issue still relevant? |
Beta Was this translation helpful? Give feedback.
-
yes |
Beta Was this translation helpful? Give feedback.
-
@flexsurfer relevant? :) |
Beta Was this translation helpful? Give feedback.
-
yes |
Beta Was this translation helpful? Give feedback.
-
@flexsurfer I will be moving this to a discussion, I think each item probably needs to be addressed separately and we want to drill a bit more down on it. We can create separate issue for each point that we agree on. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Problem
When i open app UI is slow. Sometimes it's slow during using it
Expected behavior
UI is smooth
Investigations
Updated 5 Mar 2020
dispatch-later
is paused when app in background, use:utils/dispatch-later
instead:utils/dispatch-later
works differently as well (not proved technically, only visually)dispatch-later
with 20ms leads to subs and views recalculations, if dispatch is used, subs recalculated only once ,dispatch-later
should be replaced by another approachprocess-response
signal is to often, probably we should send it not more than once a secondcljs-bean
should be used only when you want to access js object , not when you want to modify this dataflat-list
new array is created each time data is changedideal implementation
status-go signals json with new data -> status-react converts json to js, and append data to js array , js array is set to flat-list directly, no cljs data or subscriptions involved
Beta Was this translation helpful? Give feedback.
All reactions