[darcs-users] Re: darcs.cgi is slow?

David Roundy droundy at abridgegame.org
Sat Apr 9 13:08:39 UTC 2005


On Sat, Apr 09, 2005 at 02:49:41PM +0200, VMiklos wrote:
> David Roundy wrote:
> >>>zcat _darcs/patches/id
> >>>
> >>>instead of
> >>>
> >>>darcs annotate --match 'hash id'
> >>
> >>If these really meant the same thing, I doubt darcs would be so slow.
> >
> >They do mean the same thing, but "darcs annotate --match 'hash id'" isn't
> >the slow use of annotate.  What is slow is
> >
> >darcs annotate --match 'hash id' filename
> 
> do you mean that if darcs is 5 (and in some cases 10) times slower than a
> simple zcat, it isn't slow? and no, i really don't want to flame darcs ;)

Since zcat is optimal, it doesn't matter if darcs is 5 or 10 times slower.
It's slower, because it's doing more, like escaping characters that could
mess up your shell.  It also parses the patch, so that it can output it in
appropriate colors if you so desire.
-- 
David Roundy
http://www.darcs.net




More information about the darcs-users mailing list