Skip to content

update regex resolve cache only if known user changed#7489

Merged
SungJin1212 merged 1 commit intocortexproject:masterfrom
SungJin1212:update-regex-resolve-cache-when-changed
May 11, 2026
Merged

update regex resolve cache only if known user changed#7489
SungJin1212 merged 1 commit intocortexproject:masterfrom
SungJin1212:update-regex-resolve-cache-when-changed

Conversation

@SungJin1212
Copy link
Copy Markdown
Member

This PR avoids purging the regex resolver LRU cache when the set of known users has not changed between user-sync ticks to reduce cold misses.

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]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Copy link
Copy Markdown
Member

@friedrichg friedrichg left a comment

Choose a reason for hiding this comment

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

Thank you!

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 8, 2026
@SungJin1212 SungJin1212 merged commit 9160af8 into cortexproject:master May 11, 2026
97 of 101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size/M type/performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants