[Bug]: Image Viewer is very slow with directories over 1,000 images #46
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
App version
0.1.21
Platform
Both
Steps to reproduce
Expected behavior
Near instant movement between images
Actual behavior
a nearly three second delay between double click and viewer opening then another three second delay between each image change on navigation forward or back.
Additional context
Implemented a fix on branch
0.1.21/issue-46-viewer-perf.Root cause:
_refresh_filmstrip()decoded thumbnails for every image in the filtered session (e.g. 2,500) on each viewer open and on every A/D navigation, even though the filmstrip only paints a small visible window.Fix: The filmstrip now binds a lazy session with per-index resolvers. Navigation updates only the active index; thumbnails are resolved at paint time for visible slots only. Carousel neighbors still resolve individually (2 lookups), not the full session.
Verification: Added regression test
test_viewer_navigation_does_not_resolve_all_filmstrip_thumbs; all PR8 viewer tests pass.Follow-up on branch
0.1.21/issue-46-viewer-perf: optimized viewer exit → grid return._exit_viewer_to_workbench()fast path (avoids full_activate_workbenchre-activation and redundant filter re-application)ImageFilterProxysetters now no-op when unchanged; addedbegin_batch_update/end_batch_updateto coalesce invalidationsclear_session_resources()_refresh_tag_filter_viewsRegression tests added for filter batching/no-op guards, single invalidate on viewer restore, and display cache clearing. Full pytest suite passes.
Resolved in PR for branch
0.1.21/issue-46-viewer-perf(release 0.1.22).Delivered:
Closing as fixed.