Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce lag when navigating directories with large image files #525

Merged
merged 2 commits into from
Dec 29, 2024

Conversation

sahinfalcon
Copy link
Contributor

@sahinfalcon sahinfalcon commented Dec 26, 2024

This will fix: #428

Changes so far:

  • Skip image processing when preview panel is closed
  • Add colour caching to reduce redundant colour space conversions in image
    processing. Cache previously converted colours to avoid repeated RGBA->termenv
    conversions of identical pixels.

So far, this means that:

  1. No lag occurs when navigating directories with large images while preview is hidden
  2. No lag occurs when performing other operations (e.g renaming files) within directories with large images while preview is hidden
  3. Eliminates repeated colour conversions for duplicate pixels

Copy link

netlify bot commented Dec 26, 2024

Deploy Preview for superfile canceled.

Name Link
🔨 Latest commit a48762d
🔍 Latest deploy log https://app.netlify.com/sites/superfile/deploys/676ec73abc5f9e0008ed6992

@sahinfalcon sahinfalcon marked this pull request as ready for review December 27, 2024 15:27
@yorukot
Copy link
Owner

yorukot commented Dec 29, 2024

That great! thanks a lot!

@yorukot yorukot merged commit 1e86f64 into yorukot:main Dec 29, 2024
4 checks passed
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.

Lag when navigating large image files
2 participants