Tim Kientzle <[email protected]> wrote:

> To be honest, I've considered altering bsdtar's directory-traversal
> code so that it always sorts the first 100 names in a directory
> and then leaves the rest unsorted.  That would give fully-sorted
> output for almost all cases and avoid the memory consumption
> (and slow performance) on very large directories.

100 directory entries looks a bit small.

average values seem to be 5..50 entries per directory, 100 is a number that 
looks too close to values from every day.

But in general: as directories usually don't have too many entries, it is not a 
problem to read a directory at once (and this is why star uses this method 
since 10 years).

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to