prometheus/tsdb/chunkenc
Björn Rabenstein 503ffba49a
chunkenc: Slightly optimize xorWrite/xoRead (#11476)
With these changes, the "happy path" when the leading and trailing
number of bits don't need an update, fewer operations are needed.

The change is probably very marginal (no change in the benchmark added
here, but the benchmark also doesn't cover non-changing values), and
an argument could me made that avoiding pointers also has its
benefits.

However, I think that reducing the number of return values improves
readability. Which convinced me that I should at least propose this.

Signed-off-by: beorn7 <beorn@grafana.com>
2022-10-20 15:08:01 +05:30
..
bstream.go tsdb: stop saving a copy of last 4 samples in memSeries (#11296) 2022-09-27 19:32:05 +05:30
bstream_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
chunk.go Fix merge conflicts 2022-10-11 22:53:37 +05:30
chunk_test.go tsdb: Rework iterators (#9877) 2021-11-29 13:24:23 +05:30
histogram.go chunkenc: Slightly optimize xorWrite/xoRead (#11476) 2022-10-20 15:08:01 +05:30
histogram_meta.go Fix merge conflicts 2022-10-11 22:53:37 +05:30
histogram_meta_test.go Merge branch 'main' into sparsehistogram 2021-11-17 19:57:31 +01:00
histogram_test.go Fix HistogramChunk's AtFloatHistogram() 2022-10-12 10:38:13 +05:30
varbit.go tsdb: Update comment about a possible space optimization (#11303) 2022-09-15 13:11:57 +05:30
varbit_test.go Use more varbit in histogram chunks 2021-10-13 20:03:35 +02:00
xor.go chunkenc: Slightly optimize xorWrite/xoRead (#11476) 2022-10-20 15:08:01 +05:30
xor_test.go chunkenc: Slightly optimize xorWrite/xoRead (#11476) 2022-10-20 15:08:01 +05:30