qView icon indicating copy to clipboard operation
qView copied to clipboard

Large folders are slow

Open linguaccia22 opened this issue 3 months ago • 2 comments

Hi, I'm using Windows 11 Pro with the latest version of qView. I've noticed a problem with the program. When I try to open an image in a folder full of over 40,000 images, qView takes a long time to open the image. Why? I tried opening the image with the Windows Photos program instead, and it opened immediately.

linguaccia22 avatar Oct 03 '25 20:10 linguaccia22

We have $$O(n\log{n})$$ processing to build a sorted list of folder contents when opening a file. Ideally we should only need to do so if the folder changes, that would be a good optimization. This can also be done asynchronously to unblock the UI thread.

jurplel avatar Oct 11 '25 19:10 jurplel

actually loading this is already lazy, might need to do some more profiling?

jurplel avatar Oct 11 '25 23:10 jurplel