-
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
Android performance issues #16714
Comments
Hi @pavloburykh, Thank you very much for reporting this issue. Please can you confirm if performance issues happen just after the start of the app, or after a few toasts are shown (like contact request accepted, etc.). If issue only happens once toasts are shown, please can you try build from #16729 and check if issue also present there. |
Hi @Parveshdhull! Thank you for looking at this issue. I have checked build from #16729 and can confirm that performance issues still exist. It doesn't seem to me that issue is related to toast appearing as interface starts lagging even without toasts being shown. @Parveshdhull sorry that I didn't help much. I will try to investigate in future to understand what exactly causing the issues. Cause for some time after app is just being opened performance seems to be ok but after scrolling chat history which contains images, link previews, long messages - interface starts lagging. Here is a video recorded on build from #16729 telegram-cloud-document-2-5359650965253272248.mp4 |
Related information: https://www.notion.so/App-Performance-a9ad728b6bf4449ba3a394241e406524 |
UpdateFlashlistAs mentioned in the above notion document, the app works well after opening, but after some time performance starts to degrade. So it might be related to high memory usage and leaking. The article (https://www.bam.tech/article/measuring-react-native-performance-with-flashlight) compares performances of flash-list and flat-list and shows a significant decrease in memory usage. So I tried this library in our app and found out some limitations of this library. 1. Blank spacesHow does flash-list improve the app performance?
For this, We need to provide a prop
The value for this number is suggested(if not provided) and printed in metro logs by the library as a warning message. But this technique for improving performance is causing blank spaces when scrolling fast in our chat screen as shown in the below video. (even with small estimatedItemSize) Videooutput-2023-10-24_10.42.52.mp4Shopify/flash-list#868 (comment) mentions that flash-list has these problems when we have different sizes of items in list (as in our case, messages, image, links etc.) 2. Problem with
|
@Parveshdhull many thanks for this detailed research. |
UPDATE (25.01.24): Just a small update related to performance on my Android 12, Samsung Galaxy A52. When recovering accounts that have a lot of data (communities with history, many contacts etc) I am still facing serious performance issues. On the video below you can see how laggy is the UI when scrolling the history, interacting with app elements etc. Such level of performance in fact makes the app hardly usable for future android users. I understand that this problem is very hard to debug and resolve but I would like point out that this is a potential critical issue in terms of public release. So it is necessary to improve it. telegram-cloud-document-2-5303391618139700413.mp4cc @cammellos |
can we create separate issues out of it in order to split the work in pieces? how do you feel about that @Parveshdhull ? |
@churik sure. I will re-investigate which performance issues are still valid and log them separately. |
@pavloburykh what's the state of performance now as we simplified the composer, and hide(will remove) jump-to behind the toggle? Do you think this still requires some work? If this is the case we can create separete issues as per requirments, otherwise we can just close it |
@Parveshdhull performance definitely got better now. I will re-check and close this issue in case everything is ok. Otherwise will open separate issues. |
@Parveshdhull @churik |
Status app has significant performance issues on Android.
That is not really noticeable on Google Pixel, but you can see how it looks on Samsung Galaxy A52 (Android 12)
specs: https://www.gsmarena.com/samsung_galaxy_a52-10641.php - it is quite good device.
FILE_2023-07-18_121623.mp4
Steps:
Actual result: poor performance can be observed. Animation is laggy and twitchy.
Additional Information
The text was updated successfully, but these errors were encountered: