Hi Alex,

> first one is to slice the buffer and then feed it to buffy, which means 
that you have to implement streaming yourself.

Is this the same as say manually skipping till byte position X, read in 1MB 
(as described by the size bytes) of data into a buffer and pass that buffer 
(and a corresponding spec for that buffer) to buffy for deserialization? 

I didn't really understand what you meant by the second option. I am bit 
confused by which code (my custom read/skip code or buffy) would be 
responsible for populating the buffer and which code is being passed the 
callback and what exactly is happening inside the callback. 

On Thursday, 22 October 2015 14:37:46 UTC+5:30, Alex P wrote:
>
> Hi Amith, 
>
> Alex from clojurewerkz/buffy here. 
>
> There are actually 2 options: first one is to slice the buffer and then 
> feed it to buffy, which means that you have to implement streaming yourself.
>
> The other option is something I really wanted to implement for quite some 
> time already is continuation-passing style reading for larger byte buffers: 
> you streamline your file and can "dereference" the state on any point, or 
> continue reading until everything is read. Although I've never got to do 
> it. If you want, we could catch up on IRC and talk about it, I could help 
> to get that up and running. In my imagination that should be relatively 
> simple. 
>
> But you've got it right: dynamic frames will only work when buffer is 
> already contained in memory, which definitely isnt' any good of an idea for 
> larger files.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to