prometheus/storage
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
..
remote Merge pull request #12192 from leizor/leizor/prometheus/issues/11204 2023-04-11 12:30:35 +02:00
buffer.go storage: Use separate sample types for histogram vs. float 2023-04-13 19:25:24 +02:00
buffer_test.go storage: Use separate sample types for histogram vs. float 2023-04-13 19:25:24 +02:00
fanout.go Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
fanout_test.go storage: allow re-use of iterators 2022-12-15 18:32:45 +00:00
generic.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
interface.go Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
lazy.go tsdb: Added ChunkQueryable implementations to db; unified MergeSeriesSets and vertical to single struct. (#7069) 2020-07-31 16:03:02 +01:00
memoized_iterator.go Merge branch 'main' into sparsehistogram 2021-12-15 13:49:33 +01:00
memoized_iterator_test.go storage: Use separate sample types for histogram vs. float 2023-04-13 19:25:24 +02:00
merge.go histograms: Fix counter reset header during merging 2023-01-25 18:23:10 +01:00
merge_test.go storage: Use separate sample types for histogram vs. float 2023-04-13 19:25:24 +02:00
noop.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
secondary.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
series.go storage: Use separate sample types for histogram vs. float 2023-04-13 19:25:24 +02:00
series_test.go storage: Use separate sample types for histogram vs. float 2023-04-13 19:25:24 +02:00