Skip to content

Put receipts into Arcs to prevent excessive cloning.#3443

Merged
tilacog merged 2 commits intomasterfrom
tiago/arc-transaction-receipts
Apr 8, 2022
Merged

Put receipts into Arcs to prevent excessive cloning.#3443
tilacog merged 2 commits intomasterfrom
tiago/arc-transaction-receipts

Conversation

@tilacog
Copy link
Contributor

@tilacog tilacog commented Apr 7, 2022

This PR aims to improve performance issues introduced in #3373.

It envelops TransactionReceipts in Arcss to share them without cloning inside the parse_log_triggers function.

tilacog added 2 commits April 7, 2022 14:50
This commit preventively puts `TransactionReceipt` into `Arc`s to
avoid an unecessary vector allocation.
@tilacog tilacog requested a review from leoyvens April 7, 2022 18:15
@tilacog
Copy link
Contributor Author

tilacog commented Apr 7, 2022

The second commit in this PR preventively eliminates a redundant vector allocation introduced in the first commit, but it requires moreArcs than it might be necessary.

We can ignore/revert the second commit if we want fewer Arcs around or don't care about the extra vector allocation.

@tilacog tilacog merged commit 4464b04 into master Apr 8, 2022
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