--- - branch: MAIN date: Tue Sep 29 13:30:17 UTC 2009 files: - new: '1.52' old: '1.51' path: src/bin/cp/cp.c pathrev: src/bin/cp/cp.c@1.52 type: modified id: 20090929T133017Z.9aa648b07a12344687a97404c371cc859e3550c4 log: | Remove fts sorting. It was originally put there to copy files before directories since files (usually) are in the same cylinder group and subdirectories aren't. However, this mostly changed with the new ffs dirpref algorithm in 2001. No sorting has two effects: 1) copy appears to be somewhat faster (e.g. on my laptop cp'ing build objdir to tmpfs is 7% faster after the change) 2) source file parameters no longer get randomly shuffled due to fts doing an unstable sort of them. this means that "cp 1 2 3 4 dest/" will copy the files in that order instead of e.g. 3 4 1 2. module: src subject: 'CVS commit: src/bin/cp' unixtime: '1254231017' user: pooka