ZTree.com  | ZEN  | About...  

 Index   Back

Effect of sorting on deletion speed   [Discuss]

By: Peter Shute       
Date: Dec 14,2017 at 18:45
In Response to: [Discuss] Deleting Files in a Sorted Directory (Steve Fields)

> Well, unless you've timed deleting 50K-100K files, then sorting
> does matter.
>
> Why should the hard drive reader bounce around hundreds of paths to a
> branch when the computer has the Order already laid out in the File
> Allocation Table.

Sorry, I assumed you meant just sorting in the first place. No, I've never timed it. Have you? I'd be interested to know if it makes a difference.

There's a discussion about it here:
https://superuser.com/questions/19762/mass-deleting-files-in-windows

I haven't read it in detail, but sorting doesn't seem to be mentioned. One person suggested moving the files elsewhere, which he says is quick, then deleting them overnight. Yet others suggest that it's slower to let them go to the recycle bin, which is really just a move.

281 views      
Thread locked
 

Messages in this Thread

 
94,426 Postings in 11,918 Threads, 348 registered users, 7 users online (0 registered, 7 guests)
Index | Admin contact |   Forum Time: Sep 20, 2019 - 6:34 pm EDT  |  Hits:28,653,127  (1,569 Today )
RSS Feed