cvsserver: checkout faster by sending files in a sensible order
authorMartin Langhoff <martin@catalyst.net.nz>
Fri, 3 Mar 2006 03:38:03 +0000 (16:38 +1300)
committerMartin Langhoff <martin@catalyst.net.nz>
Fri, 3 Mar 2006 03:38:03 +0000 (16:38 +1300)
commit5398fed96699b5321678fdace86b6d4c62a155fb
tree3b6bb1b59be3cb36376a994fc6c244f864c16d38
parentdf45467ec98aa1c532196732c96a62589223353e
cvsserver: checkout faster by sending files in a sensible order

Just by sending the files in an ordered fashion, clients can process them
much faster. And we can optimize our check of whether we created this
directory already -- faster.

Timings for a checkout on a commandline cvs client for a project with
~13K files totalling ~100MB:

Unsorted:
  603.12 real        16.89 user        42.88 sys

Sorted:
  298.19 real        26.37 user        42.42 sys
git-cvsserver.perl