Delete speed improvement.

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Delete speed improvement.

Post by *Balderstrom »

Our current delete options are TC's internal delete or Explorer's delete (which doesn't handle file comments).

Without knowing the source as such, it is possible that Total Commander's delete is slower is because every file is checked if it exists within a descript.ion file.
If that is the case then TC's internal delete could be improved by the following (which could be an extra Option for delete method).

1) If we are in SubDirBranch View or Tree View:
Prior to file deletion, Add all unique Parent paths to a stack.
When deletions are complete, Pop all paths off the stack.
--- For each path, check if a descript.ion file exists.
--- If it does, parse the descript.ion and purge it of any non-existing files.
2) Regular View:
Delete All files.
When deletions are complete, check if a descript.ion file exists.
--- If it does, parse the descript.ion and purge it of any non-existing files.
This method means a descript.ion file only needs to be read and written to once, and only when all the deletions are done.

The only possible side-effect to this, is technically you could lose information from a descript.ion file that previously referenced files that no longer exist. Which I don't believe most(?) people would want that cruft in their descript.ion files anyways.
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

Excellent logic. Support++
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

You may take in account, that TC has to look for other items too.
E.g. any references to a possibly stored thumbnail view of a file which has to be deleted.
This thumbnails has to be removed from the database too.
#5767 Personal license
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

sqa_wizard wrote:You may take in account, that TC has to look for other items too.
E.g. any references to a possibly stored thumbnail view of a file which has to be deleted.
I don't use TCThumbs: They are far too slow to be of any use to me.

And that doesn't look to be the case. From what I can see in the Config | Thumbnails section::
You need to manually compress the database: it is not automatically done when you delete files.

So I don't know what "other things" TC has to look for.
User avatar
Phr3d
Junior Member
Junior Member
Posts: 33
Joined: 2007-01-24, 09:51 UTC
Location: midwest

Post by *Phr3d »

.ini entry that states that you have NO descrip or thumbs, therefore skip those checks (and any others that are required)?

ANYthing to speed things up (at the expense of 'features'), is a plus1 here
edit: just saw the 'explorer method', my duh.
carpe` cervesi
knf (35402)
NikolaR
Junior Member
Junior Member
Posts: 6
Joined: 2011-04-26, 17:26 UTC

Post by *NikolaR »

I don't see that TC even needs to run after descript.ion files. Leave them. They are mostly not used anyway, or at least allow user to disable this in configuration.
Post Reply