VictoriaMetrics/lib/encoding
Aliaksandr Valialkin bfad966e72
lib/encoding/zstd: reduce the number of cached zstd.Encoder instances
Use the real compression level supported by github.com/klauspost/compress/zstd as a cache map key.
The number of real compression levels is smaller than the number of zstd compression levels.
This should reduce the number of cached zstd.Encoder instances.

See https://github.com/klauspost/compress/discussions/1025
See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7503#issuecomment-2500088591
2025-02-24 00:45:42 +01:00
..
zstd lib/encoding/zstd: reduce the number of cached zstd.Encoder instances 2025-02-24 00:45:42 +01:00
compress.go lib: dump compressed block contents on error during decompression 2020-08-15 14:44:33 +03:00
compress_test.go lib/encoding: make deterministic tests which rely on math/rand 2023-01-23 18:41:09 -08:00
encoding.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:23:54 +02:00
encoding_cgo_test.go all: cleanup: remove // +build ... lines, since they are no longer needed after Go1.17, and the minimum supported Go version for VictoriaMetrics source code is Go1.20 2023-11-13 19:12:51 +01:00
encoding_pure_test.go all: cleanup: remove // +build ... lines, since they are no longer needed after Go1.17, and the minimum supported Go version for VictoriaMetrics source code is Go1.20 2023-11-13 19:12:51 +01:00
encoding_test.go lib/encoding: make deterministic tests which rely on math/rand 2023-01-23 18:41:09 -08:00
encoding_timing_test.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:07:53 +02:00
float.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:33:31 +02:00
int.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:23:54 +02:00
int_test.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:23:54 +02:00
int_timing_test.go lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit 2024-05-14 01:23:54 +02:00
nearest_delta.go lib/encoding: substitute 64-bits.LeadingZeros64() with bits.Len64() 2022-01-31 23:36:48 +02:00
nearest_delta2.go lib/logstorage: initial implementation of pipes in LogsQL 2024-05-12 16:33:31 +02:00
nearest_delta2_test.go lib/encoding: make deterministic tests which rely on math/rand 2023-01-23 18:41:09 -08:00
nearest_delta2_timing_test.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:07:53 +02:00
nearest_delta_test.go lib/encoding: make deterministic tests which rely on math/rand 2023-01-23 18:41:09 -08:00
nearest_delta_timing_test.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:07:53 +02:00