Support and General Use > Audio Playback, Database and Playlists
Dealing With Long Database Delays
chris_s:
--- Quote from: Bilgus on January 17, 2023, 09:14:21 AM ---
--- Quote from: chris_s on January 17, 2023, 02:48:39 AM ---yeah, maybe. This is what causes the additional delay: ...
There's already a dircache_wait() before that though.
--- End quote ---
yeah I was looking at that last night it looks to only be checking for deleted entries maybe we could move that out get the list up and check for validity once the user selects it if the scan isn't finished in a separate thread
@chris_s whats it do if you just disable the dircache part with #if 0
and let it use file_exists()?
--- End quote ---
That's exactly what I'm doing with the last option mentioned above. Although my understanding is, that this means, the dcrefs aren't stored in the database at all and thus find_entry_ram has to always return -1. I've also disabled background scanning for the playlist.
In my personal experience, resulting negative effects are negligible. Tagcache_fill_tags won't work anymore but that seems like a good tradeoff, except, possibly, for the fact that a WPS skin that has an integrated playlist viewer can't display upcoming metadata anymore.
Would obviously be nicer to properly fix the slow loading times, if possible, and it seems misguided to add yet another option (e.g. Load to RAM: No / Yes / With Integrated Directory Cache). But I certainly prefer it on my own devices.
edit: or, actually, looking back at my code, I set rc_cache to 0, so I seem to have skipped the file_exists check completely in load_tagcache
iPodVT:
--- Quote from: chris_s on January 17, 2023, 05:05:32 PM ---In my personal experience, resulting negative effects are negligible. Tagcache_fill_tags won't work anymore but that seems like a good tradeoff, except, possibly, for the fact that a WPS skin that has an integrated playlist viewer can't display upcoming metadata anymore.
--- End quote ---
Would that affect the Next Track display that shows a track name and artist in my WPS?
chris_s:
--- Quote from: iPodVT on January 17, 2023, 05:15:51 PM ---
--- Quote from: chris_s on January 17, 2023, 05:05:32 PM ---In my personal experience, resulting negative effects are negligible. Tagcache_fill_tags won't work anymore but that seems like a good tradeoff, except, possibly, for the fact that a WPS skin that has an integrated playlist viewer can't display upcoming metadata anymore.
--- End quote ---
Would that affect the Next Track display that shows a track name and artist in my WPS?
--- End quote ---
No. that would still work.
iPodVT:
Cool.
Bilgus:
this should be a bit faster as of today with https://gerrit.rockbox.org/r/c/rockbox/+/5075
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version