TechbeeAT / jtxBoard

jtx Board allows you to manage your Journals (like meeting minutes), Notes and Tasks in one Android app. The app is compatible with the iCal standard (RFC5545) and is integrated with DAVx5 to allow the synchronisation of entries through CalDAV.
https://jtx.techbee.at/
GNU General Public License v3.0
374 stars 10 forks source link

[BUG] Slow rendering of lists #138

Closed ivan-avalos closed 1 year ago

ivan-avalos commented 1 year ago

Describe the bug When opening the app, it takes like six seconds for the to-do list to appear. And then, switching between tabs is slow because of the rendering overhead. I don't remember this happening before the Jetpack Compose refactoring four months ago. I'm not sure if this only happens in my almost five year old phone.

Steps To Reproduce Steps to reproduce the behavior:

  1. Open the app.
  2. Wait six seconds for the list to appear, so you can see that it takes six seconds for the list to appear.
  3. Switch between tabs and see the sluggishness. (In a GitLab issue you said it was an issue with the tab bar library, but I believe it's actually the lists.)

Expected behavior List rendering is fast.

Device and version:

patrickunterwegs commented 1 year ago

Hey @ivan-avalos , how many entries do you have roundabout per tab? I think the other issue that you mention was about the animation when changing the tabs, not about the loading of the list.

ivan-avalos commented 1 year ago

7 tasks and 5 notes. I have more tasks, but they are filtered out.

patrickunterwegs commented 1 year ago

Hmm, that's strange, and which Android version are you using?

ivan-avalos commented 1 year ago

That's missing in the bug template! I'm using Android 11.

patrickunterwegs commented 1 year ago

Thanks, I have updated the template, I'll have a look at that specifically with Android 11

patrickunterwegs commented 1 year ago

I couldn't reproduce the issue on the emulator, but on an older phone.

I'll check soon if baseline profiles can help to improve performance:

https://developer.android.com/topic/performance/baselineprofiles/overview

patrickunterwegs commented 1 year ago

Hey @ivan-avalos , just a quick update for information: I have implemented those baseline-profiles which speeds up the app start in the benchmark on the old device a lot (from 8-10 seconds to less than 2). I hope that will also show a significant speed-boost on your side. I'd appreciate your feedback once the new version is ready to be released!