Skip to content
New issue

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

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

Already on GitHub? # to your account

Gallery viewer slows down over time #9

Closed
tnwei opened this issue Nov 13, 2021 · 1 comment
Closed

Gallery viewer slows down over time #9

tnwei opened this issue Nov 13, 2021 · 1 comment

Comments

@tnwei
Copy link
Owner

tnwei commented Nov 13, 2021

Current behaviour of gallery.py reindexes all saved outputs before serving each page. The intent is to allow a simple page refresh to suffice for new saved outputs to show up in the gallery viewer. Current logic does not scale well w/ number of saved outputs however; at ~500 total images saved, reindexing saved outputs before serving each page takes ~5s.

@tnwei
Copy link
Owner Author

tnwei commented Nov 13, 2021

Users with large numbers of saved outputs will still see the gallery viewer take a long time to start as saved outputs are indexed. After the gallery viewer is initialized, refreshing / switching between pages will be near instantaneous as intended.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant