Skip to content

(FEAT): Image Cache#152

Merged
DickoEvaldo merged 7 commits intomainfrom
148-story5-20-optimise-memory-usage
Mar 24, 2026
Merged

(FEAT): Image Cache#152
DickoEvaldo merged 7 commits intomainfrom
148-story5-20-optimise-memory-usage

Conversation

@DickoEvaldo
Copy link
Copy Markdown
Contributor

@DickoEvaldo DickoEvaldo commented Mar 24, 2026

What

  • new image cache system to reduce runtime memory use.

Why

  • we were exploding user's memory usage by having near 1GB of runtime memory usage

How

  • Claude Code 🥇
  • downsample image so we don't use full resolution of the image
  • used NSCache to cache the image max 50mb configurable
  • considered using Nuke / Kingfisher but overkill for our project ( fetching from bundle not the internet)

Result

  • in the room page we can see a reduction from 980mb to 160mb so thats a 6X memory usage reduction 🚀

Key checks:

  • 🚩Attached screenshot or recording of the changes in related tickets
  • Code comments where needed
  • No new warnings

Manual tests:

  • Big iPhone (iPhone 17 Pro Max)
  • Small iPhone (iPhone SE)

Screenshot / Recording

N/A

@DickoEvaldo DickoEvaldo linked an issue Mar 24, 2026 that may be closed by this pull request
Copy link
Copy Markdown

@avdn-sc avdn-sc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some potential documentation improvements that can be made

@DickoEvaldo
Copy link
Copy Markdown
Contributor Author

Just some potential documentation improvements that can be made

Thanks Goatanh

avdn-dev
avdn-dev previously approved these changes Mar 24, 2026
@DickoEvaldo DickoEvaldo merged commit ff4f42f into main Mar 24, 2026
3 checks passed
@xleonx0x xleonx0x deleted the 148-story5-20-optimise-memory-usage branch April 4, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

STORY#5-20: Optimise runtime memory usage

3 participants