On Thu, Mar 5, 2009 at 2:55 PM, Neil Mitchell <[email protected]> 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 <[email protected]> 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. -- gwern _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
