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

[release-0.15] 🏃 Make client.MatchingLabels faster #5

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

timflannagan
Copy link

No description provided.

timflannagan and others added 2 commits October 9, 2023 16:27
The 99% use-case of this is to set a selector, not to adjust an existing
one. This change introduces a fastpath that does that with half the
allocations and in a bit less than half the time.

The reason slowpath is slow is that for each label a requirement has to
be constructed that is then appended to a slice, both of which cause
allocations.
@timflannagan timflannagan merged commit bf85bcd into release-0.15 Oct 9, 2023
3 checks passed
@timflannagan timflannagan deleted the 0.15-chore/revert-labels branch October 9, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants