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

improve regexp performance in loki.process: call fmt only if debug … #2318

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

r0ka
Copy link

@r0ka r0ka commented Dec 27, 2024

PR Description
Which issue(s) this PR fixes
improve regexp performance in loki.process: call fmt only if debug is enabled

Notes to the Reviewer
Was doing promtail vs alloy perf tests, and found that alloy consumes at least 40% more CPU than promtail.
here is the link for cpu.pprof
alloy cpu pprof

promtail cpu pprof

PR Checklist
[ X] CHANGELOG.md updated

@r0ka r0ka requested a review from a team as a code owner December 27, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant