Large folders are slow
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.
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.
actually loading this is already lazy, might need to do some more profiling?