Skip to content

feat(gallery): Speed up load times and clean gallery entries#9211

Draft
richiejp wants to merge 2 commits intomudler:masterfrom
richiejp:chore/gallery-speed-meta
Draft

feat(gallery): Speed up load times and clean gallery entries#9211
richiejp wants to merge 2 commits intomudler:masterfrom
richiejp:chore/gallery-speed-meta

Conversation

@richiejp
Copy link
Copy Markdown
Collaborator

@richiejp richiejp commented Apr 3, 2026

Description

Improve the gallery load times and clean up the gallery entry meta-data, in particular the known_usecases.

clip-04-06_11-49-23.mp4

Notes for Reviewers

  • Add known usecases to all gallery entries

Signed commits

  • Yes, I signed my commits.

)

// Model-level estimate result cache — keyed by model ID, avoids re-running
// the full estimation pipeline (HTTP HEAD, GGUF reads, HF API) on every
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

mmm readers are already cached in this file, I'm missing what's the issue trying to solve here? the first loading of the page is slow because it runs estimations, but if you go back to page already loaded that's not loaded from scratch- unless I'm missing something?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I found it to be very slow and this speeds it up mainly because it does the VRAM estimation asynchronously, but yeah I got into a mess here, there is a lot of duplication of VRAM estimation and we are doing quite a bit of unnecessary work. So I've reworked all of it into a single function and replaced the TTL cache with a generational cache and stuff like this.

@richiejp richiejp force-pushed the chore/gallery-speed-meta branch from 81ee94a to 86fda78 Compare April 6, 2026 10:44
richiejp added 2 commits April 6, 2026 11:52
…n_usecases

Signed-off-by: Richard Palethorpe <io@richiejp.com>
@richiejp richiejp force-pushed the chore/gallery-speed-meta branch from 86fda78 to e98d30f Compare April 6, 2026 10:52
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.

2 participants