-
Notifications
You must be signed in to change notification settings - Fork 23
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
[chore] Strip debug_info when not collecting metrics #865
Conversation
is this for eDSL or rust? in rust when we compile with |
For eDSL, wanna do a quick benchmark to see how much will this gain. |
Benchmarks
E2E Benchmarks
Commit: 70ef0c5 |
@@ -90,6 +90,11 @@ impl<F: PrimeField32> ExecutionSegment<F> { | |||
) -> Self { | |||
let mut chip_set = config.create_chip_set(); | |||
chip_set.set_streams(streams); | |||
let program = if config.collect_metrics { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update new_segment
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm can you explain why this makes such a big difference? Is it because there's some cloning?
get_instruction clones debug_info |
This reverts commit 61a772e.
Mostly for eDSL program. Comparing to
fib_e2e
in https://github.com/axiom-crypto/afs-prototype/blob/gh-pages/benchmarks-pr/838/individual/fib_e2e-2-2-2-2-64cpu-linux-arm64-mimalloc.md , ~15% execution time reduce.