View Issue Details

IDProjectCategoryView StatusLast Update
0019695MMANavigationpublic2024-03-26 17:53
Reporterrusty Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status assignedResolutionreopened 
Product Version2.0.0 
Target Version2.0.1Fixed in Version2.0.0 
Summary0019695: Navigation: Switching between screens is slow (performance regression)
DescriptionWhen switching between screen a black screen with 'loading...' often appears. I've never noticed this before, so I think it might be a performance regression in build 1059.

Navigate from Home > Genres
--> loading... flashes for a noticeable amount of time before 147 genres appear
Navigate from Genres > Bluegrass
--> loading... flashes for a fraction of a second before 4 Albums appear

When I tested this on a slower device (a tablet), the issue was much more severe (Home > Genres took about 1.5s on the loading screen even though there are only a total of 43 tracks in the library).

Note: build 1050 takes about 1s whereas build 1058 takes about 1.5s. (I didn't measure with build 1057/1058 on the tablet because MM crashed on that device on those builds).
TagsNo tags attached.
Fixed in build1060

Relationships

related to 0020383 assignedmartin Navigation to child playlists has unneeded animation artifacts 

Activities

martin

2023-01-07 02:13

developer   ~0070845

Last edited: 2023-01-07 02:16

I can't replicate it on my devices.
Also I don't know about a change that could lead to such problems.
Is some operation in progress(hourglass visible)?
Please save your logs and attach and I will test it with your database.
On my devices more than 1k tracks and switching between screens has no loading.

rusty

2023-01-09 02:59

administrator   ~0070857

Last edited: 2023-01-09 03:43

This issue isn't database-specific. It occurs on both the Pixel 5a (Android 13) and the Samsung SMT-320 tablet (Android11) that I'm testing with. The issue is far more noticeable on the slower device (SMT320 running Android 11). The issue seems to be worse when MMA is run after having been shut down. What's particularly interesting is that:
- Switching from Tracks tab to Genres tab (or between most tabs) incurs no delay
- Switching from Home to Genres tab (or going deeper into the hierarchy in any way) incurs the delay

Here is a log from the Pixel 5a in which the issue occurs just by running MM (the loading screen appears before the home screen is rendered):
QHSASYWGFD

And here are logs from the SMT-320 in which the issue is replicated by switching from Home > Genres and then Genres > Alternative
5UBZ3EARWV

martin

2023-01-10 15:58

developer   ~0070882

Improved in build 2.0.0.1060.
In MMA 2.0 was regression that did not use readOnly connection for view loading.
This is fixed in build 2.0.0.1060 + additional improvements.

However there can be some delay due to loading tabs and navigation for first time.
Let me know how it works on your devices.
In my opinion another improvements can be deferred to 2.0.1.

rusty

2023-01-10 22:26

administrator   ~0070890

There's a slight improvement in 1060, but it's still not as fast as MM 1.4.

Deferring remaining work to 2.0.1.

rusty

2023-04-16 22:16

administrator   ~0071525

I've moved this back to 2.0 as there have been numerous user-complaints that 2.0 is slower than 1.4. I don't see any obvious regressions, but the most obvious item is that 'loading...' flashes briefly before views open. e.g.
a) Navigate from Home > Genres
--> loading... flashes briefly before Genres appear

b) Tap any top-level node from the menu bar (e.g. 'Music')
--> loading... flashes briefly before the node opens

c) Navigate from Genres > Bluegrass
--> loading... flashes for a fraction of a second before 4 Albums appear

rusty

2023-05-08 15:02

administrator   ~0071763

Resolving for retesting.