[Haskell-cafe] Data.ByteString.Lazy.ByteString vs Data.ByteString.Lazy.Internal.ByteString

Antoine Latter aslatter at gmail.com
Thu Mar 17 07:13:37 CET 2011

On Thu, Mar 17, 2011 at 12:51 AM, C K Kashyap <ckkashyap at 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.



> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Glasgow-haskell-users mailing list