[svk-devel] checkout signature caching

Brice Figureau brice+svk at daysofwonder.com
Mon Jul 30 11:04:47 EDT 2007


Hi,

On Fri, 2007-07-27 at 00:31 +0800, Chia-Liang Kao wrote:
> So our current checkout mtime/size etc cache (to avoid doing full md5
> check to see if a file is modified) was done with some weird
> optimisation - to use one perlop.   I don't think it's particularly
> efficient format though.  I made a little change on the flight to use
> some format with pack and unpack.  I have not done any benchmark yet,
> but it does feel slightly faster.  If anyone is up for doing some
> tests, here's the patch.

I did some basic tests (I had to remove my cache) and found that it is
really faster (at least on svk status which I always found super slow
compared to svn status):

Old version:
$ time svk status
svk status  1.73s user 1.07s system 99% cpu 2.798 total

New patched version:
$ time svk status
svk status  1.40s user 0.23s system 92% cpu 1.772 total

This on a standard macbook, and with a modest checkout of:
$ find -type f | wc -l
9626
in 
$ find -type d | wc -l
460
directories...

HTH
Thanks,
-- 
Brice Figureau <brice+svk at daysofwonder.com>



More information about the svk-devel mailing list