Skip to content

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Aug 13, 2024

What this PR does:

Apply the same as prometheus/prometheus#14118 to only check context cancellation every 128 iterations. This should help with the performance a bit but overall it is just a small portion of the CPU profile.

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]

@yeya24 yeya24 merged commit a4f913c into cortexproject:master Aug 13, 2024
16 checks passed
@yeya24 yeya24 deleted the check-ctx-cancellation-every-N-iters branch August 13, 2024 17:59
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