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

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

r0ka
Copy link
Contributor

@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
…is enabled. surrounding rest of the debug messages with debug check.
Copy link
Contributor

@wildum wildum left a comment

Choose a reason for hiding this comment

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

Thanks a lot, this is super helpful!

@wildum wildum merged commit 0b63535 into grafana:main Jan 7, 2025
15 checks passed
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.

2 participants