You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be amazing to have a drop-in replacement for saveRDS and readRDS that uses fst compression. I wrote the below functions which seem to just work though may benefit from some optimization. Could the fst package incorporate something like this?
Hi @kendonB, thanks for reading my post and sharing your code!
Yes, the qs package is probably what you are looking for, it uses LZ4 and ZSTD compression for in-memory and on-disk serialization of general R objects.
Your code also shows the steps required to implement list columns in fst. Each list element needs to be serialized first (on the master thread) and the result can be compressed and written to disk (on background threads). Like with character columns, the master thread requirement will slow the serialization of list columns, but it would certainly be a nice feature to have (and the list columns would have full random access like the other types).
I followed this page: https://www.r-bloggers.com/multi-threaded-lz4-and-zstd-compression-from-r/
It would be amazing to have a drop-in replacement for
saveRDS
andreadRDS
that uses fst compression. I wrote the below functions which seem to just work though may benefit from some optimization. Could the fst package incorporate something like this?Created on 2019-08-23 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: