Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Implement RAII span for transaction timing to avoid cloning input #67

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

cpubot
Copy link
Contributor

@cpubot cpubot commented Apr 23, 2024

This removes the run_and_wrap_txn_proof_in_elapsed_span function in favor of an RAII guard. This is better aligned with the tracing span semantics, and most importantly, avoids cloning the GenerationInputs, which was required due to the input being moved into the closure argument of run_and_wrap_txn_proof_in_elapsed_span.

@cpubot cpubot requested a review from BGluth April 23, 2024 17:27
Copy link
Contributor

@BGluth BGluth left a comment

Choose a reason for hiding this comment

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

Yeah this is a bit nicer than the closure setup. 👍

Copy link
Collaborator

@Nashtare Nashtare left a comment

Choose a reason for hiding this comment

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

Agree, it looks cleaner like this, thanks!

@cpubot cpubot merged commit 361edbf into develop Apr 23, 2024
3 checks passed
@cpubot cpubot deleted the zbrown/tx-timing-span-raii branch April 23, 2024 20:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants