
6 Mar
2009
6 Mar
'09
8:23 p.m.
On Thu, Mar 5, 2009 at 2:55 PM, Neil Mitchell
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
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