On Thu, Jul 11, 2019 at 1:39 PM Klaus Post <klausp...@gmail.com> wrote:
> On Sunday, 23 June 2019 20:09:48 UTC+2, Aliaksandr Valialkin wrote: >> >> >> >> On Sun, Jun 23, 2019 at 8:34 PM Jason E. Aten <j.e...@gmail.com> wrote: >> >>> very nice. >>> >>> https://github.com/klauspost/compress just added zstd all in Go, might >>> be a lovely way to remove the CGO dependency. >>> >> >> I'm keeping eye on it! Currently cgo version of zstd has slightly better >> performance comparing to pure Go version - see >> https://github.com/klauspost/compress/tree/master/zstd#performance >> > > Actually, that is only the Datadog cgo package and only for specific write > sizes. It ties your cgo package for levels 1 & 3 (the only ones currently > implemented) for streaming performance. > > Either way, having it as an option for CGO_ENABLED=0 builds using the > 'cgo' build tag, would probably make compiling/packaging it easier for a > lot of people. > This is really great idea! Will try implementing it. Does github.com/klauspost/compress support all the levels for data decompression? VictoriaMetrics varies compression level depending on the data type. It would be great if github.com/klauspost/compress could decompress data compressed by the upstream zstd on higher compression levels. -- Best Regards, Aliaksandr -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAPbKnmCTEh8Z-48n%2BKBUu5nL7TDxoNL9bQb9sR0AzuuvZtPH8w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.