Folder size and Caching

Features wanted...
DmFedorov
Posts: 715
Joined: 04 Jan 2011 16:36
Location: Germany

Folder size and Caching

Post by DmFedorov »

I think that the cache of folder sizes can be tied to the number of items in the folder.

If the number of items, for example, equal to 5000 then size calculation lasts not so long and we don't need the cache.
If the number of items in a folder is more than a predetermined value, then for a folder we will have cached size that can be updated (if in doubt) by pressing Shift+F5

It is also possible take into account that if the folder modification date remains the same, then new calculating of size is pointless - it will be the same, and therefore we can have cache-size of a folder without the tilde sign.
------
Added
In other words, we now have the opportunity to set the option "Always show folder sizes" and make exceptions for "Dangerous folders" in the form of tweaks:
ShowFolderSizesExclude=
CacheFolderSizesExclude=

If the cache of folder sizes will be tied to the number of items in the folder, then we will have auto-tweak "CacheFolderSizesExclude="
And in this case I don't need to use the option 'Folder View Settings' for this.
Last edited by DmFedorov on 20 May 2016 15:47, edited 1 time in total.

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

Re: Folder size and Caching

Post by admin »

Yes, would be possible. The feature is young. Let's see what other ideas develop...

DmFedorov
Posts: 715
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Folder size and Caching

Post by DmFedorov »

[quote="DmFedorov"]It is also possible take into account that if the folder modification date remains the same, then new calculating of size is pointless - it will be the same, and therefore we can have cache-size of a folder without the tilde sign[/quote]
From file fsc.dat I don't fully understand what is really going by cashing, but if you try this idea, we will get a very interesting effect.
All folders that since the last cache have not been changed will not have a tilde.
Usually at least 50 percent of folders do not change their contents within a few years.
And if the last cache date will be one month ago, the same percentage will be closer to 90..
Last edited by DmFedorov on 20 May 2016 15:48, edited 1 time in total.

Filehero
Posts: 2721
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Folder size and Caching

Post by Filehero »

Hi,

it may be sort of hijacking but I dont want to open yet another thread on that topic.

My demand is to show folder sizes everwhere, but to cache them only for one root location (my backup drive) and all children. Afaii the current tweaks I cant' do that (the tweaks are black lists, but I need a white listing).

So this could be the key to a solution for me as well: "(only) cache size for all folders which have mmore than #configurableNumber of children"?

DmFedorov
Posts: 715
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Folder size and Caching

Post by DmFedorov »

Filehero wrote:My demand is to show folder sizes everwhere, but to cache them only for one root location (my backup drive) and all children. Afaii the current tweaks I cant' do that (the tweaks are black lists, but I need a white listing).
Nevertheless (even now) you can have a "white list" very simple.
You must set the option in the configuration 'Always show folder sizes' without caching
Then go in your folder and in context menu of size-column put 'Cache Folder Sizes'
Then, in menu View / Folder View Settings select 'Save Folder View'
Then in the View / Folder View Settings / Edit ... you must set a condition: all subfolders or part of it.
-----
After that you will have what you wanted: No caching everywhere except your Folder.

But if cache of folder sizes will be tied to the number of items in the folder (and its subfolders) your desire would have been solved automatically.

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

Re: Folder size and Caching

Post by admin »

DmFedorov wrote:
DmFedorov wrote:It is also possible take into account that if the folder modification date remains the same, then new calculating of size is pointless - it will be the same, and therefore we can have cache-size of a folder without the tilde sign
From file fsc.dat I don't fully understand what is really going by cashing, but if you try this idea, we will get a very interesting effect.
All folders that since the last cache have not been changed will not have a tilde.
Usually at least 50 percent of folders do not change their contents within a few years.
And if the last cache date will be one month ago, the same percentage will be closer to 90..
I'm not sure I want to rely on the folder modification date. Such dates have been unreliable in all Windows versions I can remember.

DmFedorov
Posts: 715
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Folder size and Caching

Post by DmFedorov »

Yes, it seems you're right: If I change the name of the file, then in this case, the date will change.
But if I change the file (its size), the modified date of the folder will remain the same.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Folder size and Caching

Post by LittleBiG »

I would like to ask for using the "?:\" drive reference in the CacheFolderSizesExclude tweak. I have the same folder on my removable drives to carry things, and I don't want to cache the size of that folder. It would be easier to use the ? in the definition than set all possible drive letter one by one.

EDIT: Additionally, I wouldn't cache the [Empty] folders. It will be very misleading when some file will be added and the cache still shows empty. It is worse than a not quite exact folder size.

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

Re: Folder size and Caching

Post by admin »

It's just a tweak. No complications at the moment.

Filehero
Posts: 2721
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Folder size and Caching

Post by Filehero »

Hi DmFedorov,

thank you for your help.
DmFedorov wrote:Nevertheless (even now) you can have a "white list" very simple.
You must set the option in the configuration 'Always show folder sizes' without caching
Then go in your folder and in context menu of size-column put 'Cache Folder Sizes'
Then, in menu View / Folder View Settings select 'Save Folder View'
Then in the View / Folder View Settings / Edit ... you must set a condition: all subfolders or part of it.
-----
After that you will have what you wanted: No caching everywhere except your Folder.
If I "stop" right after the last step the global cache option 'Cache Folder Sizes' is on, right? So to make my white listing emulation complete I have to switch it off again. But then, I again have no caching with my just FVSed folder, it's back to global off. So this simply doesn't work over here.

I must be missing something. :?

DmFedorov
Posts: 715
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Folder size and Caching

Post by DmFedorov »

Now this does not work, but I distinctly remember that checked my guess.
I remember that in all folders (except one) was folder-sizes without cache and in exceptions-folder was caching.
I went to other places, and then returned to this "specific folder" (~three times) and there was cache instead folder sizes.

(I was translating the help and came across the author's words there: "Tip 1: There is also a list style Show Folder Sizes, which gives you more control because you can enable it individually per tab, or per folder (via Folder View Settings)."

Now i can not reproduce this. Excuse me.

Today (in v.16.80.002) i can see caching for this folder without calculating cache in all folders.
(if i tick off "always calculate folder sizes)
(05.22.2016 14_39_15).gif
(05.22.2016 14_39_15).gif (13.64 KiB) Viewed 5666 times

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Folder size and Caching

Post by LittleBiG »

If I decide to use Calculate Folder Sizes to refresh the cache, after refreshing please delete the subfolders from the cache. Otherwise very weird sizes can happen. Think about the situation, when you have the Downloads folders with subfolders Movie, Games, Music and so on, and the next subfolder level like Games/Shooter, Games/Adventure, Movie/Romance, Movie/Comedy and so on. If I have downloaded things, the easiest way to refresh the cache is to recalculate the size of the Downloads folder. If subfolders are not deleted from the cache, I have to find some workaround or I have to visit each subfolder and refresh their size too.

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

Re: Folder size and Caching

Post by admin »

Fascinating how simple ideas become more and more complex once they get in touch with reality.

highend
Posts: 14641
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Folder size and Caching

Post by highend »

Is this intended?

When I extract a .zip archive with context menu - Zip - Extract here
the cached! folder size view is refreshed (or recalculated?) multiple times during extraction (probably because of having more than one file in the archive).

Auto-refresh is on but
Configuration | Refresh, Icons, History | Auto-Refresh | Refresh during file operations
is off
One of my scripts helped you out? Please donate via Paypal

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Folder size and Caching

Post by LittleBiG »

admin wrote:Fascinating how simple ideas become more and more complex once they get in touch with reality.
Indeed. However, I realized what I wrote sounds complicated. It simply means that "Clear Folder Size Cache" should be a way to be partial. (Clear cached sizes in the current folder and its subfolders).

Post Reply