Page 4 of 5
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 17:33
by admin
Maybe it should not be done at all if Show cached folder sizes only is ticked?
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 18:01
by Evolve
Yeah, I only asked for the tweak to set the number to 0 and cache all the subfolders.
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 18:09
by admin
All? I meant none.
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 18:18
by Evolve
You think it will be too heavy performance-wise?
Maybe we need a tweak after all to see how it goes. Something like:
Default = 256
0: Cache all
-1: Cache none
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 18:27
by admin
Could be done.
But wouldn't it be simpler and logical to just not auto-add subfolders to the cache if "Show cached folder sizes only" is enabled? After all one effect of "Show cached folder sizes only" is that you actively decide which specific folders you want to see the size for.
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 18:35
by Evolve
How about a scenario where you want to traverse through the entire hierarchy and see which subfolders contain a lot of items or have a big size. You would have to recalculate every next level to add them to the cache.
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 18:39
by admin
You could just turn off "Show cached folder sizes only".
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 18:47
by Evolve
The whole point of this setting is that you don't want this auto-calculation everywhere. Once you have it turned off, all the other tabs (where you don't need it) will have become exposed to it as well.
Re: Remember calculated Folder Size within the session.
Posted: 02 Aug 2022 18:56
by admin
Just added the tweak.

Re: Remember calculated Folder Size within the session.
Posted: 03 Aug 2022 15:47
by Evolve
The only problem with this tweak is that it affects both ticked and unticked state of
Show cached folder sizes only GUI setting. But what makes sense for the unticked one (256), doesn't make sense for the ticked one (-1 / 0) and vice versa. So when you tick/untick the GUI setting, you then have to go and adjust the tweak accordingly which devalues putting it in the GUI in the first place.
Maybe a better way would be to leave that number alone hardcoding it back to 256 (you could always keep the tweak but I don't see anyone showing up full of enthusiasm that they can finally adjust it) and to introduce instead a tweak working exclusively for
Show cached folder sizes only
CachedFolderSizesShowCachedOnlyAutoAdd=1 (current CacheFolderSizesAutoAddFrom=0)
CachedFolderSizesShowCachedOnlyAutoAdd=0 (current CacheFolderSizesAutoAddFrom=-1)
PS or just leave it as it is... I personally don't tick / untick it every 5 minutes

Re: Remember calculated Folder Size within the session.
Posted: 03 Aug 2022 17:00
by admin
Or totally simplify it: Just add everything on the first sublevel, and nothing further down. Regardless of "Show cached folder sizes only".
Re: Remember calculated Folder Size within the session.
Posted: 03 Aug 2022 17:11
by Evolve
But why not just cache every sublevels? I see no impact on performance whatsoever. It's just throwing the free info out of the window.
-------------
0. You want to calculate the size/items for a specific folder and then go inside and see which subfolders contribute the most, then go deeper and repeat and so on...
-1. You don't care what's going on inside of the folder you're calculating. So subfolders might as well be cached if there is no impact on performance (I can't see any). Plus you're not losing case 0 when you need it.
Re: Remember calculated Folder Size within the session.
Posted: 03 Aug 2022 17:21
by admin
Depends. You will get an impact on performance if you're calculating a large deeply nested structure. Stuff will be added to the cache you might never open and look at. Stuff that's completely wasted in the cache.
Re: Remember calculated Folder Size within the session.
Posted: 03 Aug 2022 17:29
by Evolve
admin wrote: ↑03 Aug 2022 17:00
Or totally simplify it: Just add
everything on the first sublevel, and
nothing further down. Regardless of "Show cached folder sizes only".
This behavior is already available with the tweak set to -1. What your're suggesting is to remove all the other options, please don't

Re: Remember calculated Folder Size within the session.
Posted: 03 Aug 2022 17:36
by admin
I won't touch it until more people show some interest in it.
