Do you have a logical explanation to do so? I still can't see the advantage. Please think about it a bit more:admin wrote:Yep, exactly what I will do.highend wrote:Why not just the first subfolder(s) of the current folder to cache (without any further recursion)?
Base situation: recalculating the size of Downloads folder.
1. Your solution: calculating the size of Downloads (x seconds) and calculating the Downloads/SubfoldersFirstLevel (y seconds). The necessary amount of time is x+y.
2. My solution: delete the subfolders from cache (to be comparable with your solution, only the 1st level of subfolders to remove) then calculating Downloads folder. Calculation time is only x. When I go into a subfolder, that will be missing from the cache, so the calculation time will be y/TotalNumberOfFolders.
What I don't undertsand: why is it better to wait for the process longer to finish 1 time, than to do it in smaller parts, and do the calculation when and if it is really necessary?? Maybe I will never enter a subfolder in the Downloads, but it was calculated and increases the cache. I don't have SSD, so the calculation difference can be significant.
It is similar in some way to the Custom Column trigger. Your solution is the "Browse", mine is the "List".
XYplorer Beta Club