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

perf: statically disable logging in clients #38

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

xJonathanLEI
Copy link
Contributor

@xJonathanLEI xJonathanLEI commented Sep 1, 2024

Some dependencies are instrumented with logging, and the log level evaluation happens at runtime. While the client programs don't actually print any logs to the output, such evaluation still happens silently and costs cycles. This PR disables logging at compile time to completely eliminates them from the resulting binary.

Performance improves slightly. For the block tested of 20600000, the cycle count drops from 769,074,912 to 759,763,136 by 1.22%.

@xJonathanLEI xJonathanLEI merged commit 1baaf1d into succinctlabs:main Sep 5, 2024
2 checks passed
@xJonathanLEI xJonathanLEI deleted the dev/disable_logging branch September 5, 2024 22:09
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