Subject: | Feature request dump/load to string |
Hello.
I am working on Amazon Glacier client code
(https://github.com/vsespb/mt-aws-glacier/), so Glacier checksum
calculation organized the way that I really need call clone() to get up
to 100% performance win when uploading small files.
( Thing is Amazon Glacier need two checksums - one is sha256 for file,
Another is TreeHash (tree hash consist of sha256 with 1 Mb chunks) - so
checksum for first 1M is calculated twice.)
Well, would be great to have dump/load to string, not to a file, because
my application is multithreaded (using fork) and I will need to pass SHA
object via socket (thus I cannot clone, I need load/dump but it's kind
of inconvenient to use external filesystem for this).