[darcs-users] blue color bug

David Roundy droundy at abridgegame.org
Mon Jul 5 15:36:11 UTC 2004


On Mon, Jul 05, 2004 at 05:05:00PM +0200, Juliusz Chroboczek wrote:
> +anyPS f ps | nullPS ps = False
> +           | f $ headPS ps = True
> +           | otherwise = anyPS f $ tailPS ps
> 
> David, that was my first attempt before I sent you the patch with the
> printer changes.  Benchmarking indicates that this makes darcs
> whatsnew five (5) times slower than with the imperative-style anyPS
> that you removed.
> 
> This turns out to actually be *slower* than the former version of the
> printer (the one that unpacked all packed strings).

I've rewritten in a way that ought to be fast.  It could be even better if
we made it accept a (Word8 -> Bool) argument, since that would avoid the
conversion to Char.
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list