mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-29 23:30:04 +01:00
34db3fdd3f
The standard Snappy encoder from github.com/golang/snappy shows quite good performance number for compressing the Prometheus remote_write proto messages according to the added benchmarks, so there is no need in switching to github.com/klauspost/compress/s2 yet.
18 lines
474 B
Go
18 lines
474 B
Go
// Copyright 2016 The Snappy-Go Authors. All rights reserved.
|
|
// Copyright (c) 2019 Klaus Post. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build (amd64 || arm64) && !appengine && gc && !noasm
|
|
// +build amd64 arm64
|
|
// +build !appengine
|
|
// +build gc
|
|
// +build !noasm
|
|
|
|
package s2
|
|
|
|
// decode has the same semantics as in decode_other.go.
|
|
//
|
|
//go:noescape
|
|
func s2Decode(dst, src []byte) int
|