Poor performance after importing big data
Describe the bug After importing my weight data (200+ points) from Google Fit
the app became very slow when changing tabs and adding new entries, and slow overall
To Reproduce Steps to reproduce the behavior:
- Download trale version X from F-Droid / Github
- Import large data
- Change viewed tabs from the nav bar OR try to add a new entry
Expected behavior Better performance
User Information (please complete the following information):
- Device: Pixel 3
- OS: Stock ROM Android 12
- Version: 0.11.1
- Downloaded: F-Droid
@MohamedWaheed I am sorry to hear that. With the current implementation, the performance (should) scales with the timespan between the first and latest measurement. How many years/month do you cover? And is it just slow or not usable?
Thank you, the data covers 2018~2025. Well, honestly it is usable if you are patient, but it might be unusable for many people, recording new weight hangs the the app for like 2-4 seconds, and changing screens takes around 1-2 seconds.
Also having so much data, revealed the need to view data per quarter and per month on the chart, also i found the interactive use of the chart to be very confusing (maybe because of the hangs of having so much data, and maybe it is not related to slowness but to intuitive use)
@MohamedWaheed Thx for clarification. The issue is that once you change the screen, the interpolation of all seven years is estimated on the fly. @gwosd I guess this could (and should!) be fixed by caching the interpolation. This should remove this issue for all cases except of adding/deleting measurements. But this sounds better than hanging on every screen change.