- 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