| Summary: | Improve startup time and responsiveness with network music collections when loading a very large playlist on launch | ||
|---|---|---|---|
| Product: | [Applications] Elisa | Reporter: | tneo |
| Component: | general | Assignee: | Matthieu Gallien <matthieu_gallien> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde.bugs, nate |
| Priority: | NOR | ||
| Version First Reported In: | 20.12.1 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
tneo
2021-01-14 14:15:08 UTC
Over a minute? Yikes, that is quite slow. It's about one second for me with a local music collection on an NVMe SSD. Having a large collection on a slow network location is probably the culprit, but maybe we can do a bit better here. What seems to be the culprit is that I load a playlist with several thousand songs in there and randomly play those. (I start Elisa where I left of). When I have a single album selected it is fast enough to be responsive upon start. Interesting. Works for me with a playlist of 3000 songs with my local music collection. I guess there's something about the network use case that triggers the bug. My playlist contains 9,179 tracks. Is there anything I can provide you for more insight? Nah, you're good. Thanks! Based on a wireshark capture, it appears that Elisa is doing an enumeration of all files in the playlist, plus all additional files in the directories such as images and NFO files - this makes sense, it needs to know what files have been deleted or added since the last run. The Elisa UI completely hangs while this is happening. Feels like this enumeration and updating should be a separate thread, similar to how QMMP does it - I can add a directory on my NAS that has 20K files in descendant directories, and QMMP remains responsive the whole time. QMMP doesn't to the album art thing, so it may be enumerating fewer files than Elisa overall, but the actual enumeration appears to happen in a separate thread that updates the playlist. With version 23.08.2 this issue appears to be resolved. I thought this was resolved, but am forced to reopen my bug report. I encountered this today that Elisa is unresponsive after opening. - Last night I selected "Tracks" for shuffle play (~26K files). - I opened Elisa this morning and it has difficulty coming to live and shows in a white unresponsive state. - It takes 5:07 minutes before Elisa is available for user interaction. 23.08.2-1.1 Recent versions don't have this issue anymore. |