[Haskell-cafe] Re: Using Get monad to efficiently parse byte-stuffeddata

Tim Attwood timothyea at comcast.net
Wed Mar 24 19:53:56 EDT 2010


> Going through the data using getWord8 is a no-go. It is just too slow.
> My solution so far has been to get the underlying bytestring and work
> with that, but obviously defeats the purpose of using the Get monad.
> What might be a better solution?

hGetArray with IOUArrays goes perty fast.



More information about the Haskell-Cafe mailing list