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

Unused point slices are not added back to the pool by the matrix selector #4362

Closed
roganartu opened this Issue Jul 9, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@roganartu
Copy link
Contributor

roganartu commented Jul 9, 2018

A recent change to promql/engine.go moved the call to putPointSlice from the evaluator finalizers in the matrixSelector method to elsewhere:

dd6781a#diff-83539908220a826e39b7ba3a4f27d5d6L862

However, now only the used point slices are returned to the pool:

putPointSlice(s.Points)

I may be missing something here, but afaict unused (ie: empty) point slices should be returned to the pool immediately, since no reference to them is held after the current iteration in matrixSelector anyway.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Jul 16, 2018

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.