trale icon indicating copy to clipboard operation
trale copied to clipboard

Poor performance after importing big data

Open MohamedWaheed opened this issue 6 months ago • 3 comments

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:

  1. Download trale version X from F-Droid / Github
  2. Import large data
  3. 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 avatar Jun 12 '25 13:06 MohamedWaheed

@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?

braniii avatar Jun 19 '25 17:06 braniii

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 avatar Jun 20 '25 14:06 MohamedWaheed

@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.

braniii avatar Jun 23 '25 20:06 braniii