Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: wip allow PromQL engine to operate on immutable histogram pointers #13679

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krajorama
Copy link
Member

Related to #13659 .

Optimize the engine in case the iterator loading histogram samples has already allocated the samples and doesn't modify them afterwards , thus there is no need to make copies. E.g. storageSeriesIterator

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@krajorama krajorama requested a review from roidelapluie as a code owner March 1, 2024 07:27
@krajorama krajorama marked this pull request as draft March 1, 2024 07:27
@@ -385,7 +387,7 @@ func (it *SampleRingIterator) AtFloatHistogram(fh *histogram.FloatHistogram) (in
it.fh.CopyTo(fh)
return it.t, fh
}
return it.t, it.fh.Copy()
return it.t, it.fh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this also be guarded behind reuseHistograms?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants