prometheus/tsdb/chunkenc
George Krajcsovits 4eab18abd6
[nhcb branch] Use single bit to differentiate between optimized bounds and floats (#13828)
* Use single bit to differentiate between optimized bounds and floats

Use one bit to decide what kind of data to read/write.
This reduces storage need of floats from 72 bits to 65 bits and makes the
integers store in 5 to 32 bits instead of 16.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: George Krajcsovits <krajorama@users.noreply.github.com>
Co-authored-by: Jeanette Tan <jeanette.tan@grafana.com>
2024-03-27 18:40:59 +01:00
..
bstream.go [nhcb branch] Use single bit to differentiate between optimized bounds and floats (#13828) 2024-03-27 18:40:59 +01:00
bstream_test.go
chunk.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
chunk_test.go tsdb: use Go standard errors 2023-12-11 12:18:54 +00:00
float_histogram.go Add custom buckets to native histogram chunks encoding (#13706) 2024-03-22 14:36:39 +01:00
float_histogram_test.go Add custom buckets to native histogram chunks encoding (#13706) 2024-03-22 14:36:39 +01:00
histogram.go Add custom buckets to native histogram chunks encoding (#13706) 2024-03-22 14:36:39 +01:00
histogram_meta.go [nhcb branch] Use single bit to differentiate between optimized bounds and floats (#13828) 2024-03-27 18:40:59 +01:00
histogram_meta_test.go [nhcb branch] Use single bit to differentiate between optimized bounds and floats (#13828) 2024-03-27 18:40:59 +01:00
histogram_test.go Add custom buckets to native histogram chunks encoding (#13706) 2024-03-22 14:36:39 +01:00
varbit.go tsdb/chunkenc: use Go standard errors package 2023-11-08 08:38:57 +00:00
varbit_test.go
xor.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
xor_test.go chunkenc: Slightly optimize xorWrite/xoRead (#11476) 2022-10-20 15:08:01 +05:30