I'm looking at this library for one of my projects, and one requirement is periodic sync of vectors to storage. We have.finish(), but we don't have a constructor which takes in the compressed bytes. I currently construct a reader then populate an empty vector from the iterator. This seems wasteful.
Also, would it be possible to add a non-consuming finish_into(&mut buf)? Right now I have to clone a vector in order to sync it.
I'm looking at this library for one of my projects, and one requirement is periodic sync of vectors to storage. We have
.finish()
, but we don't have a constructor which takes in the compressed bytes. I currently construct a reader then populate an empty vector from the iterator. This seems wasteful.Also, would it be possible to add a non-consuming
finish_into(&mut buf)
? Right now I have to clone a vector in order to sync it.