traversc / qs

Quick serialization of R objects
397 stars 19 forks source link

Is it possible to use `qs` to compress an object and not serialize to disk? #16

Closed xiaodaigh closed 5 years ago

xiaodaigh commented 5 years ago

I imagine a qs function called compress

compress_obj = compress(large_object)

and that compress_obj is still in memory. Why would I want that? It's because I can use it together with future and pass compressed object back and forth worker sessions.

traversc commented 5 years ago

Yes, there are two functions for that:

qserialize and qdeserialize.