Files
SpotiFLAC-Mobile/lib
zarzet 0331d5ecac perf(library): skip snapshot builds for pages and failed builds
A track page or a search that was the first shadow read after a write
waited for the whole snapshot build: 124 to 440 ms on the host's Android
fixture, against 1.6 ms for a 60-song page with the per-row check. Home's
recently added shelf, the Library tab, Android Auto and Link read pages
on their own, so those reads got slower. They now use the snapshot only
when it is already current and otherwise keep the per-row check at its
old cost, without building. A page with an album completeness filter
assesses every album, so it still builds.

A failed build is now tried again only after the stamp moves, so a
persistent failure no longer costs a pairs query on every read. Its
warning, like a new one for a failing snapshot query, is logged once per
connection.
2026-10-31 01:20:41 +07:00
..