- Create derived state `filteredAndGroupedAlbums` that caches results
- Add `matchesAlbumSearchFast` inline function to reduce overhead
- Add `groupAlbumsOptimized` that avoids unnecessary array copies
- Sort albums within groups instead of pre-sorting entire array
- Remove inline computation in template, use memoized results
This prevents repeated filtering and grouping on every render cycle.
Part of #13 - LocalLibrary performance optimization
Previously each AlbumCard created a ResizeObserver on mount to detect
text overflow for the ticker/marquee effect. With 10,000 cards, this
meant 10,000+ active observers causing significant overhead.
Changes:
- Remove ResizeObserver creation in onMount
- Measure overflow only on first mouseenter/focus event
- Reset measurement state when title/artist props change
- Ticker effect still works but only activates when user hovers
This significantly reduces CPU and memory overhead for large album
grids while preserving the visual effect when users interact with cards.
Part of #13 - LocalLibrary performance optimization
- Add 150ms debounce for album search to prevent filtering on every
keystroke (matches track search behavior)
- Memoize getArtworkUrl() with Map cache to avoid repeated
convertFileSrc() calls for the same artwork path
- Clear debounce timer and state when search is closed
Part of #13 - LocalLibrary performance optimization
Implement VirtualizedAlbumList.svelte for rendering large album
collections efficiently:
- Only renders items visible in viewport + buffer
- Supports both grid and list view modes
- Handles grouped albums with headers
- Alpha index integration for quick navigation
- Absolute positioning with calculated heights
- ResizeObserver for dynamic container sizing
Integration with LocalLibraryView:
- Import and use virtualization store settings
- Conditionally render virtualized vs standard list
- Performance mode activates when album count exceeds threshold
- Subscribe to performance settings changes
CSS additions:
- Virtualized container with proper height calculation
- Smooth scrolling support
Part of #13 - LocalLibrary performance optimization
Extend SQL-based filtering to artists and search:
- Add get_artists_with_filter() method that filters source and
network folders directly in SQL
- Replace library_get_artists N+1 loop that was calling
db.search(artist.name, 10000) for EACH artist
- Add search_with_filter() method for optimized track search
- Replace library_search post-query filtering with SQL predicates
These changes eliminate thousands of redundant database queries
when browsing large libraries with network folders or Qobuz downloads.
Part of #13 - LocalLibrary performance optimization
- Update PKGBUILD to support both x86_64 and aarch64 architectures
- Use architecture-specific sources and checksums
- Update AUR workflow to download and checksum both tarballs
- Add smart wait logic for both release assets (max 10 minutes)
- Homologize workflow naming for consistency
- Package function now detects architecture and uses correct tarball
AUR users on ARM64 devices (Raspberry Pi, etc.) can now install qbz-bin.
- Add Comment field to all .desktop files for app launcher descriptions
- Change category from Music to AudioVideo for better categorization
- Add Keywords for improved searchability (audiophile, hifi, streaming)
- Enhance metainfo.xml with detailed feature list and links
- Configure AppImage bundle settings in tauri.conf.json
- Update workflows to generate improved .desktop files
AppImage now includes embedded icon via Tauri icon configuration.
App will now appear in Multimedia category with proper description in all Linux app launchers.
Artist radio: Generate 20 tracks, find first from seed artist (distance 0), move to position 0
Track radio: Generate 20 tracks, find seed track itself, move to position 0
This ensures radio always starts with a relevant track