On Thu, Mar 17, 2011 at 12:51 AM, C K Kashyap <ckkash...@gmail.com> wrote: > I had started exploring the internal - PS constructor route looking at the > base64 encoding implementation by Bryan (which is really fast - > http://www.serpentine.com/blog/2010/09/02/fast-base64-encoding-and-decoding-in-haskell/ > )- I was wondering if we don't use the PS constructor can we implement > base64 encoding that's comparable? I mean, can we create an asymptotically > similar implementation? > Regards, > Kashyap
I'm a fan of Data.ByteString.Unsafe.unsafeUseAsCStringLen when I need access to the raw buffer. http://hackage.haskell.org/packages/archive/bytestring/0.9.1.10/doc/html/Data-ByteString-Unsafe.html#v:unsafeUseAsCStringLen Antoine > _______________________________________________ > Haskell-Cafe mailing list > haskell-c...@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > > _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users