mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
Profile pictures are displayed at small fixed sizes (18-100dp) but Coil's disk cache stores full-size originals, causing expensive re-decode on every memory cache miss. With 60 avatars on screen, this creates significant I/O. Adds a ProfilePictureFetcher with a dedicated ThumbnailDiskCache that stores pre-resized 256px JPEG thumbnails (~5-10KB each). On cache hit, reads a tiny file instead of re-decoding the full original. The zoomable full-screen dialog bypasses this cache and loads the original via the normal Coil pipeline. https://claude.ai/code/session_01PBJS3HDrurLP3i5n4tMsCv