Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2005 22:35:45 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Brian Candler <B.Candler@pobox.com>, Tim Kientzle <kientzle@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Order of files with 'cp'
Message-ID:  <p0623092cbfa6eff43665@[128.113.24.47]>
In-Reply-To: <p0623092bbfa6da1014c7@[128.113.24.47]>
References:  <20051116161540.GB4383@uk.tiscali.com> <437F7E22.5050800@freebsd.org> <20051120192914.GC19572@uk.tiscali.com> <p0623092bbfa6da1014c7@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
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@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0623092cbfa6eff43665>