Gallery viewer slows down over time
tnwei opened this issue · 1 comments
tnwei commented
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 commented
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.