Commit Graph
9 Commits
Author SHA1 Message Date
Gianluca Boiano 2e33b81914 Improve code quality and thread safety (#844)
- Format Go files (gofmt) for backend/windows/notify*.go
- Add thread safety to Stopwatch with sync.Mutex
- Add comprehensive unit tests for Stopwatch with race detection
- Add godoc comments to ImageCache public APIs
- Improve IPC documentation with platform-specific socket path details
- Document portable mode TODO for future enhancement
2026-02-03 11:39:47 -08:00
Gianluca Boiano 43e8d0a453 Optimize resource usage in waveform generation and image cache
- Replace sleep-based polling in waveform generation with channel-based
  synchronization to reduce CPU usage and improve responsiveness
- Add sync.Pool for audio buffers in waveform analysis to reduce memory
  allocations
- Fix critical bug in ImageCache where struct field updates were not
  being persisted to the map, causing LRU tracking to fail
- Optimize ImageCache evictOne() to use single pass instead of two
  separate iterations through all cache items
- Upgrade read locks to write locks in ImageCache Get methods to ensure
  struct updates are properly saved
2026-02-01 22:29:28 +01:00
Jacalz 08f335da44 Run gofumpt on the project 2025-09-17 22:30:49 +02:00
Drew Weymouth 09fcc6dcb8 clear in-memory image cache on server logout 2023-07-28 17:10:40 -07:00
Drew Weymouth 1465479f2a add expiry to cached full size cover art 2023-07-18 18:31:20 -07:00
Drew Weymouth 261726a5c6 add GetExtendTTL 2023-02-02 16:15:29 -08:00
Drew Weymouth 867461dab5 remove gcache dependency, switch to custom image cache with TTL for memory savings 2023-02-02 15:52:59 -08:00
Drew Weymouth 0c06e13423 more work on image cache 2023-02-02 11:42:51 -08:00
Drew Weymouth ab5612eba4 beginning work on custom image cache 2023-02-02 11:42:51 -08:00