Order of files with 'cp'

Garance A Drosihn drosih at rpi.edu
Sun Nov 20 19:35:49 PST 2005


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


More information about the freebsd-current mailing list