[darcs-users] increasingly slow record times

Nathan Gray kolibrie at graystudios.org
Fri Oct 5 19:47:12 UTC 2007


On Fri, Oct 05, 2007 at 01:51:20PM -0400, Nathan Gray wrote:
> My attempts at changing a single file 3000 times results in a repo
> with less than 100 patches, because most of the time the change is not
> detected.  I am not sure how to overcome this problem and get useful
> benchmarking.

Oh!  I forgot the '--ignore-times' flag.

mkdir text_update_test; cd text_update_test; darcs init; touch 1.txt; darcs add 1.txt; for number in `seq 1 3000`; do echo "this is change $number" > 1.txt; cat 1.txt; darcs record --ignore-times --all --author text_update_test -m "updated to number $number" 1.txt; echo `date +"%s.%N"` >> record.log; rm 1.txt; done; cat record.log | perl -e 'my $a; while (my $b = <STDIN>) { chomp($b); print ++$c . "\t" .  (60 / ($b - $a)) . "\n" if $a; $a = $b }' > record_rate.txt; echo 'set term png; set output "record_rate.png"; plot "record_rate.txt"' | gnuplot -; display record_rate.png; cd ..

These results are much better.  They also show that 3000 records to
the same file are fairly fast, though there does appear to be a slight
linear rate decrease.

I am attaching the rate graphs for this new test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: record_rate_update_text.png
Type: image/png
Size: 6246 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20071005/bb3c8457/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20071005/bb3c8457/attachment-0001.pgp 


More information about the darcs-users mailing list