DirSizeCalc 1.21 (content plug-in)
Moderators: Hacker, petermad, Stefan2, white
- GammelBert
- Member
- Posts: 109
- Joined: 2007-02-21, 18:42 UTC
- Location: Germany
Hi!
nice Plugin!
A cache would be a really great feature.
Which priority does calculation have? I don't want it to steal my other processes CPU time.
I want to replace the builtin size column with DirSizeCalc size column. Is its speed for calculating file sizes equal to the builtin size column? Is file size calculated twice if I add the plugin column to the builtin one?
I would like to request a command to toggle DIR size calculation on/off so I could add a button for this command.
Regards!
nice Plugin!
A cache would be a really great feature.
Which priority does calculation have? I don't want it to steal my other processes CPU time.
I want to replace the builtin size column with DirSizeCalc size column. Is its speed for calculating file sizes equal to the builtin size column? Is file size calculated twice if I add the plugin column to the builtin one?
I would like to request a command to toggle DIR size calculation on/off so I could add a button for this command.
Regards!
2GammelBert
Hi,
- The filesystem caches the calls made by DirSizeCalc. Subsequent calls are much faster tha first calculation on a directory.
- DirSizeCalc is just a content plug-in. A caching system should be introduced not by every individual plugin but by TC itself.
Hi,
DirSizeCalc doesn't have a cache for two reasonsA cache would be a really great feature.
- The filesystem caches the calls made by DirSizeCalc. Subsequent calls are much faster tha first calculation on a directory.
- DirSizeCalc is just a content plug-in. A caching system should be introduced not by every individual plugin but by TC itself.
DirSizeCalc uses a background thread which is created by TC not by the plug-in. Anyway the plug-in doesn't require too many cpu resources but it does a lot of hard disk drive reading. I don't really want to change change a thread priority created by TC. This is again something to set in TC.Which priority does calculation have? I don't want it to steal my other processes CPU time.
The calculation speed should be identical.I want to replace the builtin size column with DirSizeCalc size column. Is its speed for calculating file sizes equal to the builtin size column?
No it should be performed only once. Just don't add a field tc.Size.Is file size calculated twice if I add the plugin column to the builtin one?
That's a very good idea. It's also a task which cannot be performed by the plug-in but by TC. I have made similiar requests a long time ago but unfortunately they have not been added to TC.I would like to request a command to toggle DIR size calculation on/off so I could add a button for this command.
I don't agree. How could TC now if "content" of a file (or directory) changed? It could cache the contents only as long as nothing with the file changed, not on virtual file systems. But even this is not safe enough. Sb. may read information about the file i.e. in the registry or in Locate-like database.Lefteous wrote:DirSizeCalc is just a content plug-in. A caching system should be introduced not by every individual plugin but by TC itself.
Only the plugin writer can determine whether the content of the file changed. Of course, this can be added to the interface, but I'm not sure if it's worth effort.
And the second thing: the plugin writer can sometimes create a more efficient buffer, one that doesn't have to read everything from scratch. If DirSizeCalc could determine where something changed, it could recalculate only one branch in the directory tree. And usually the plugin cache could be stored in a way that takes less space than a string for each file.
It's not about plugins, is it? ;->Lefteous wrote:2m^2I always wondered what the refresh page in the configuration dialog is aboutHow could TC now if "content" of a file (or directory) changed?
ADD:
Yes, we need another interface that will tell TC "Hey you, reread me, I have something important to tell! Hallo, are you listening? I'm here! (...)"

2m^2
It just proves TC knows a lot about changes in the filesystem.It's not about plugins, is it?
Plug-ins work vive-versa. If TC thinks the information belonging to a file should be updated it asks the plug-in again. Otherwise the currently displayed values are used.es, we need another interface that will tell TC "Hey you, reread me, I have something important to tell! Hallo, are you listening? I'm here!
Not enough. Even for DirSizeCalc. Trying to know more could significantly slow the system down.Lefteous wrote:2m^2It just proves TC knows a lot about changes in the filesystem.It's not about plugins, is it?
There could be a message based system "I changed". It'd need something that tells the plugin, which files are visible.Lefteous wrote:Plug-ins work vive-versa. If TC thinks the information belonging to a file should be updated it asks the plug-in again. Otherwise the currently displayed values are used.es, we need another interface that will tell TC "Hey you, reread me, I have something important to tell! Hallo, are you listening? I'm here!
I don't request such interface. I don't think it's worth it. But universal interface...that's a different thing.
Yes, as I said, it would be slow.Lefteous wrote:2m^2Well then I don't understand your suggestion to observe whole trees. That's a real performance killer - if my plug-in does that or TC doesn't matter.Not enough. Even for DirSizeCalc. Trying to know more could significantly slow the system down.
And I didn't say that doing this by a plugin would be faster - just that plugin knows better what's important for it.
2 thoughts later: It wouldn't also be good if several plugins checked the same...so what I wrote before was not really a good solution. But if there was cooperation between plugins...it could work

- GammelBert
- Member
- Posts: 109
- Joined: 2007-02-21, 18:42 UTC
- Location: Germany
I just want to add that I am concerned about the health of my harddisk. I need this plugin only sometimes. So I don't want to stress my harddisk more than nescessary. This plugin could reduce its lifetime because it is reading so much from the harddisk.GammelBert wrote:
I would like to request a command to toggle DIR size calculation on/off so I could add a button for this command.