[Haskell-cafe] Data.Binary stack overflow with Data.Sequence String

Gwern Branwen gwern0 at gmail.com
Fri Mar 6 20:23:16 EST 2009

On Thu, Mar 5, 2009 at 2:55 PM, Neil Mitchell <ndmitchell at gmail.com> wrote:
> Avoid massive reductions in runtime while maintaining the same API?
> I did move to using ByteString's internally for those bits later on,
> but reading String's from Data.Binary with a ByteString+unpack went
> much more quickly than reading String's
> On Thu, Mar 5, 2009 at 7:35 PM, Don Stewart <dons at galois.com> wrote:
>> Avoid unpack!

I wish I could use ByteStrings throughout and avoid packing/unpacking,
but unfortunately I don't control the Yi interfaces! If I want to
stick something in a buffer, String it is. This is where recent
discussions about Stringable classes certainly seem apropos - it would
be nice if we didn't have to do all this marshalling and converting by
hand, indeed.


More information about the Haskell-Cafe mailing list