Slow loading of cached folder sizes
Posted: 06 Nov 2021 08:13
I recently updated from 21.10 to the most recent version 22.30 and noticed that something seems to have changed which makes displaying a large number of folders' cached sizes much slower. I tried it with a fresh install of 22.30 just to be sure there wasn't some problem from me updating such an old build.
Try to reproduce:
-run a fresh or old copy of 22.30 portable (I have no reason to believe it's specific to the portable version, but that's what I use)
-enter or make a directory with about 500 folders, filling them with files or not makes no difference I think. (I attached 500 empty folders in a zip if you'd like to be spared from a bit of copy pasting) -General>Tree and List>List>check "always show folder sizes" and "cache folder sizes"
-wait a few seconds for it to cache all the folders
-enter a different folder, or switch to a different tab, then return to the folder with a bunch of folders.
bonus:
-sort everything by "size" and repeat the last step. It becomes even worse.
Expected behavior:
Slow initial scan, then intimidate display of cached folder size on subsequent visits.
Actual behavior:
Slow initial scan, and slightly less slow subsequent scan.
The cache is clearly doing something because subsequent scans are slightly faster and have the squiggly line implying it is in fact a cached result, but it is still very slow. If you'd like to, try the same test on 21.10 (possibly later too, I haven't tried anything between 21.10 and 22.30) and the folders as well as their cached sizes will load instantly
The problem is even worse on my normal installs than the empty test install. For example, I have one folder with only 200 folders inside of it and it takes about 5 seconds to "gather folder sizes" and freezes the pane while doing so. Any more than that and I basically just have to disable folder sizes.
Any help/advice with this issue is very much appreciated.
Try to reproduce:
-run a fresh or old copy of 22.30 portable (I have no reason to believe it's specific to the portable version, but that's what I use)
-enter or make a directory with about 500 folders, filling them with files or not makes no difference I think. (I attached 500 empty folders in a zip if you'd like to be spared from a bit of copy pasting) -General>Tree and List>List>check "always show folder sizes" and "cache folder sizes"
-wait a few seconds for it to cache all the folders
-enter a different folder, or switch to a different tab, then return to the folder with a bunch of folders.
bonus:
-sort everything by "size" and repeat the last step. It becomes even worse.
Expected behavior:
Slow initial scan, then intimidate display of cached folder size on subsequent visits.
Actual behavior:
Slow initial scan, and slightly less slow subsequent scan.
The cache is clearly doing something because subsequent scans are slightly faster and have the squiggly line implying it is in fact a cached result, but it is still very slow. If you'd like to, try the same test on 21.10 (possibly later too, I haven't tried anything between 21.10 and 22.30) and the folders as well as their cached sizes will load instantly
The problem is even worse on my normal installs than the empty test install. For example, I have one folder with only 200 folders inside of it and it takes about 5 seconds to "gather folder sizes" and freezes the pane while doing so. Any more than that and I basically just have to disable folder sizes.
Any help/advice with this issue is very much appreciated.