
18 Dec
2009
18 Dec
'09
7:29 a.m.
Mitar
I checked ByteString's hGetNonBlocking now and I do see why it is still better to use System.IO's hGetBufNonBlocking.
[...] But with hGetNonBlocking I would have to append two different buffers to get a resulting buffer, what is completely unnecessary O(n).
Lazy ByteStrings should be able to append with O(1). (Or use strict BS hGetNonBlocking, and Lazy ByteString fromChunks.) -k -- If I haven't seen further, it is by standing in the footprints of giants