prometheus/tsdb/tsdbutil
beorn7 630bcb494b storage: Use separate sample types for histogram vs. float
Previously, we had one “polymorphous” `sample` type in the `storage`
package. This commit breaks it up into `fSample`, `hSample`, and
`fhSample`, each still implementing the `tsdbutil.Sample` interface.

This reduces allocations in `sampleRing.Add` but inflicts the penalty
of the interface wrapper, which makes things worse in total.

This commit therefore just demonstrates the step taken. The next
commit will tackle the interface overhead problem.

Signed-off-by: beorn7 <beorn@grafana.com>
2023-04-13 19:25:24 +02:00
..
chunks.go storage: Use separate sample types for histogram vs. float 2023-04-13 19:25:24 +02:00
dir_locker.go Share TSDB locker code with agent (#9623) 2021-11-11 11:45:25 -05:00
dir_locker_test.go Share TSDB locker code with agent (#9623) 2021-11-11 11:45:25 -05:00
dir_locker_testutil.go refactor: move from io/ioutil to io and os packages (#10528) 2022-04-27 11:24:36 +02:00
histogram.go Refactor tsdbutil for tests/native histograms (#11948) 2023-02-10 17:09:33 +05:30