[Haskell-cafe] Alex Lexer Performance Issues

Tristan Ravitch travitch at cs.wisc.edu
Wed Jun 22 16:53:50 CEST 2011

On Wed, Jun 22, 2011 at 07:48:40AM +0100, Stephen Tetley wrote:
> How fast is good old String rather than ByteString?
> For lexing, String is a good fit (cheap deconstruction at the head /
> front). For your particular case, maybe it loses due to the large file
> size, maybe it doesn't...

I gave it a shot and the percentages in the profile are approximately
the same (and peak memory usage was about double).  I might end up
having to parse the original binary format instead of the text format.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110622/7a6fc97c/attachment.pgp>

More information about the Haskell-Cafe mailing list