Skip to content

perf: implement caching to thumbnail render#18

Open
MichaelTj02 wants to merge 6 commits into
mainfrom
thumbnail-render-fix
Open

perf: implement caching to thumbnail render#18
MichaelTj02 wants to merge 6 commits into
mainfrom
thumbnail-render-fix

Conversation

@MichaelTj02
Copy link
Copy Markdown
Collaborator

Summary

Reworked thumbnail rendering pipeline and added queue-based caching saving previously rendered thumbnails outside of the viewport range. Fixed previous unstable rendering when scrolling up and down aggressively.

Type of change

  • Feature
  • Fix
  • Other (perf)

How was this tested?

  • Ran uv run main.py
  • Open preprocessing module and import images
  • Select the render thumbnail option
  • Scroll up and down all the way to the end, then back to initial cursor location
  • Checks:
    -Previously rendered thumbnails stays there. If cache exceeds size, check if thumbnail is deleted and re-rendered.
    -See if aggressive scrolling crashes the app

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.

1 participant