runtime fusion for Data.ByteString.cons ?

Spencer Janssen sjanssen at cse.unl.edu
Sun Nov 19 18:49:40 EST 2006


On Nov 19, 2006, at 11:54 AM, Claus Reinke wrote:
> I noticed that ByteString is drastically slower than String if I use
> cons a lot. according to the source, that is expected because of
> the memcpy for the second parameter.

Have you considered constructing your strings with unfoldr?  It  
should be able to handle most (all?) of your string producing  
functions efficiently.


Cheers,
Spencer Janssen




More information about the Glasgow-haskell-users mailing list