here is your feedback: great work!
do you have an idea of the minimum payload size at which point it's
beneficial to use pgzip wrt gzip? (I surmise there is some overhead
going from the latter to the former)
-s
Hi, thank you so much for this, your library is amazing.I checked it with https://gist.github.com/arnehormann/65421048f56ac108f6b5 and love it so far!
That's entirely possible with the program in that gist.Just use -r=raw for the input and pipe a file into it.
I tried it with a tared directory and compared the result with diff -q to check the unpacked output matches the input.
How does performance compare to calling zlib/libzip via cgo?
Just wondering, does gzkp allocate more memory resources than gzstd?
how about compressing small chunks of data, like 4kb for each message?
I have used your library, but it can not keep up with the speed of messages flows in, So I switch back to cgzip
how about compressing small chunks of data, like 4kb for each message?
Just wondering, does gzkp allocate more memory resources than gzstd?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
is there any convincing reason to not integrate most of these improvements in the std lib once they're entirely finished ?
--
Nice speed !Have you seen this article ? http://fastcompression.blogspot.fr/2015/07/huffman-revisited-part-2-decoder.html
// Get a Writer from the Pool gz := zippers.Get().(*gzip.Writer) // We use Reset to set the writer we want to use. gz.Reset(w) defer gz.Close() // When done, put the Writer back in to the Pool defer zippers.Put(gz)
Please note that defers run in reverse order, so you want to defer the Put() before the Close() to avoid calling the latter on a writer that has already been Put() back into the pool and is potentially already being used by another goroutine.
I'd suggest putting the Put() right after the Get() unless there's some way for Reset() to fail that would make it unsuitable for reuse (in that case it should be between Reset() and the deferred Close()).
Klaus,
[...]
Please note that defers run in reverse order, so you want to defer the Put() before the Close() to avoid calling the latter on a writer that has already been Put() back into the pool and is potentially already being used by another goroutine.
I'd suggest putting the Put() right after the Get() unless there's some way for Reset() to fail that would make it unsuitable for reuse (in that case it should be between Reset() and the deferred Close()).