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

Wrap debug logging to avoid expensive operations. #762

Merged
merged 2 commits into from
Jan 18, 2023

Conversation

cristiangreco
Copy link
Contributor

Wrap a couple of debug log lines with a check whether debug is enabled, to avoid the (relatively tiny) overhead of allocations for strings formatting.

Wrap a couple of debug log lines with a check whether debug is enabled,
to avoid the (relatively tiny) overhead of allocations for strings
formatting.
@cristiangreco cristiangreco merged commit b8f20a1 into master Jan 18, 2023
@cristiangreco cristiangreco deleted the cristian/wrap-cli-debug-log branch January 18, 2023 15:58
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