Hi!
On Fri, Dec 18, 2009 at 8:16 AM, Jason Dusek jason.du...@gmail.com wrote:
Concatenating two `ByteString`s is O(n)?
This is what it is written here:
http://haskell.org/ghc/docs/latest/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#v%3Aappend
Mitar
Hi!
On Thu, Dec 17, 2009 at 5:28 AM, Jason Dusek jason.du...@gmail.com wrote:
It seems like the message delimiter to me because you keep
buffering till you receive it.
Hm, true. I have changed code to this:
getLastMyData :: MySate (Maybe MyData)
getLastMyData = do
p - gets process
case
You shouldn't have to use `malloc` and `free` to accumulate
input. Just append to a list or a ByteString, which is to say,
add a byte to a ByteString to get a new ByteString. Yes, really.
Maybe there is something I am missing here; but I can't see any
reason to adopt this unnatural (for
Hi!
On Fri, Dec 18, 2009 at 1:53 AM, Jason Dusek jason.du...@gmail.com wrote:
You shouldn't have to use `malloc` and `free` to accumulate
input. Just append to a list or a ByteString, which is to say,
add a byte to a ByteString to get a new ByteString. Yes, really.
Oh, I did not know that
Concatenating two `ByteString`s is O(n)?
--
Jason Dusek
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe