Skip to content

Improve image loading performance#415

Merged
marcprux merged 1 commit into
skiptools:mainfrom
dfabulich:improve-image-performance
May 8, 2026
Merged

Improve image loading performance#415
marcprux merged 1 commit into
skiptools:mainfrom
dfabulich:improve-image-performance

Conversation

@dfabulich
Copy link
Copy Markdown
Contributor

@dfabulich dfabulich commented May 8, 2026

  1. We'd configured Coil to load images at their original size, but Coil refuses to use its memory cache when you do that. Now, we're passing it an arbitrary size, and it's magically happy with that.
  2. We're now remembering the ImageRequest model, ensuring its stability for recomposition

Before this PR, skiptools/skipapp-showcase#78 was loading each SVG and decoding it as you scroll, on every frame. ☠️

Skip Pull Request Checklist:


  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

Cursor generated the code, once I figured out that it was never using its memory cache. I tested it with skiptools/skipapp-showcase#78

1. We'd configured Coil to load images at their original size, but Coil refuses to use its memory cache when you do that. Now, we're passing it an arbitrary size, and it's magically happy with that.
2. We're now remembering the `ImageRequest` model, ensuring its stability for recomposition
@cla-bot cla-bot Bot added the cla-signed label May 8, 2026
@marcprux
Copy link
Copy Markdown
Member

marcprux commented May 8, 2026

Great improvement, thanks!

@marcprux marcprux merged commit 83c6efc into skiptools:main May 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants