Remember calculated Folder Size within the session.

Features wanted...
admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Remember calculated Folder Size within the session.

Post by admin »

Maybe it should not be done at all if Show cached folder sizes only is ticked?

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Remember calculated Folder Size within the session.

Post by Evolve »

Yeah, I only asked for the tweak to set the number to 0 and cache all the subfolders.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Remember calculated Folder Size within the session.

Post by admin »

All? I meant none.

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Remember calculated Folder Size within the session.

Post 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

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Remember calculated Folder Size within the session.

Post 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.

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Remember calculated Folder Size within the session.

Post 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.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Remember calculated Folder Size within the session.

Post by admin »

You could just turn off "Show cached folder sizes only".

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Remember calculated Folder Size within the session.

Post 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.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Remember calculated Folder Size within the session.

Post by admin »

Just added the tweak. :)

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Remember calculated Folder Size within the session.

Post 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 :)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Remember calculated Folder Size within the session.

Post by admin »

Or totally simplify it: Just add everything on the first sublevel, and nothing further down. Regardless of "Show cached folder sizes only".

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Remember calculated Folder Size within the session.

Post 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.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Remember calculated Folder Size within the session.

Post 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.

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Remember calculated Folder Size within the session.

Post 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 :ninja:

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Remember calculated Folder Size within the session.

Post by admin »

I won't touch it until more people show some interest in it. :)

Post Reply