[darcs-users] darcs changes --maxcount=1
Gwern Branwen
gwern0 at gmail.com
Sun Apr 19 14:38:46 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
So one of my earnest desires for improving Gitit performance on
test.darcs.net was to remove as many calls to darcs changes as
possible in Gitit & Filestore (finished in HEAD), and also for 'darcs
changes' to be much faster for the use-case of getting the last hash
affecting a given file.
The latter seems to've been done during the Darcs sprint, and the
- --max-count option is now available at the branch
http://code.haskell.org/darcs/sprint-2009-04/max-count
It offers a considerable speedup: example timings on my system include
AlexanderGrafov.page
real 0m0.150s
user 0m0.124s
sys 0m0.020s
AnttiJuhaniKaijanaho.page
real 0m0.150s
user 0m0.128s
sys 0m0.020s
Backups.page
real 0m0.120s
user 0m0.092s
sys 0m0.020s
A comparable command, dropping the max-count, is noticeably slower:
AlexanderGrafov.page
real 0m3.320s
user 0m1.188s
sys 0m0.220s
AnttiJuhaniKaijanaho.page
real 0m1.011s
user 0m0.892s
sys 0m0.120s
Backups.page
real 0m9.653s
user 0m1.380s
sys 0m0.236s
enWheeler.page
real 0m1.272s
user 0m1.032s
sys 0m0.212s
BestPractices.page
real 0m1.947s
user 0m1.652s
sys 0m0.264s
Binaries.page
real 0m2.102s
user 0m1.480s
sys 0m0.228s
And even on my speedy personal system the speedup in a gitit instance
is perceptible; so I think with all these optimizations put together,
test.darcs.net may be usable again. Attached are patches that make
filestore use --max-count=1 (due to versioning you may need to
override the darcs dependency).
- --
gwern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.5)
iEYEAREKAAYFAknrN3YACgkQvpDo5Pfl1oJNsQCfebax7yA5kP4kz58mLFfFj2hX
sQ0AnjioqmPdb14tBvio7SNsnYl8M3S8
=N98U
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changes.log
Type: text/x-log
Size: 12570 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090419/548b1732/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: maxcount.dpatch
Type: application/octet-stream
Size: 8019 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090419/548b1732/attachment-0001.obj>
More information about the darcs-users
mailing list