[Haskell-cafe] Double free-ing

Mitar mmitar at gmail.com
Fri Dec 18 17:48:39 EST 2009


On Fri, Dec 18, 2009 at 6:54 PM, Mitar <mmitar at gmail.com> wrote:
> On Fri, Dec 18, 2009 at 8:29 AM, Ketil Malde <ketil at malde.org> wrote:
>> Lazy ByteStrings should be able to append with O(1).  (Or use strict BS
>> hGetNonBlocking, and Lazy ByteString fromChunks.)
> Oh, true. Thanks!
> But ... lazy ByteString's hGetNonBlocking is probably not lazy? Could
> it be? It has to read at that moment whatever it can? But appending is
> really better. Why are lazy ByteStrings not default?

Tried it and it really works great! Thanks to all.


More information about the Haskell-Cafe mailing list