Skip to content

Pull upstream fix of logging performance#42

Merged
thaarok merged 1 commit intonormafrom
jkalina/fix-log-perf
Sep 8, 2023
Merged

Pull upstream fix of logging performance#42
thaarok merged 1 commit intonormafrom
jkalina/fix-log-perf

Conversation

@thaarok
Copy link
Copy Markdown
Collaborator

@thaarok thaarok commented Sep 7, 2023

This is pull of a fix made by ethereum developers:
ethereum/go-ethereum#28069

Opera currently consumes 2% of runtime in generating stacktraces in logging (especially in trace logs) even when the logging is disabled and when the logger does not use these stacktraces. This fixes that.

 Avoids the somewhat expensive stack.Caller invocation by checking if it is needed
@thaarok thaarok requested a review from wsodsong September 7, 2023 18:57
Copy link
Copy Markdown
Collaborator

@wsodsong wsodsong 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 for bringing the fix to this repo.

@thaarok thaarok merged commit 8b8bb4a into norma Sep 8, 2023
@thaarok thaarok deleted the jkalina/fix-log-perf branch September 8, 2023 05:14
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.

3 participants