Re: Order of files with 'cp'

From: Garance A Drosihn <drosih_at_rpi.edu>
Date: Sun, 20 Nov 2005 22:35:45 -0500
At 9:56 PM -0500 11/20/05, Garance A Drosihn wrote:
>
>*Assuming* the comment is correct, and that there *is* some
>performance benefit by copying files before directories, then
>it still seems to me that sorting all the files is a pretty
>clumsy heavy-handed way to accomplish that.  These days some
>people have directories with tens of thousands of entries in
>them.  Do we really want the overhead of "sorting" all of those
>entries just so files are copied before directories?

It also occurs to me that it might be helpful to know what
effect sorting would have when combined with the 'dirhash'
processing we have in directories now.  If we *are* going
to bother to sort the list of entries going into some
directory, then maybe there is some other sort-order which
would produce better results as far as dirhash is concerned.

[disclaimer: I know nothing about how dirhash does it's hashing.
It might be completely irrelevant which order is used when
adding files to a directory]

-- 
Garance Alistair Drosehn            =   gad_at_gilead.netel.rpi.edu
Senior Systems Programmer           or  gad_at_freebsd.org
Rensselaer Polytechnic Institute    or  drosih_at_rpi.edu
Received on Mon Nov 21 2005 - 02:35:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC