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

Avoid over allocating strings.Builder when creating cache key #6451

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

alanprot
Copy link
Member

What this PR does:
Small fix to avoid over-allocating the build when creating the cache key.

Before this change we were adding the blocks and seed size for every matcher while we only really use those values once per key.
Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@alanprot alanprot merged commit 7b1ed51 into cortexproject:master Dec 21, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants