Skip to content

Avoid cloning the transaction in payload processor #18936

@shekhirin

Description

@shekhirin

Describe the feature

We can avoid this clone by wrapping the tx into Arc and sending it to both prewarm and execution channels

let _ = prewarm_tx.send(tx.clone());

This should work, because none of the transaction traits functions expect an owned value.

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-engineRelated to the engine implementationC-perfA change motivated by improving speed, memory usage or disk footprintD-good-first-issueNice and easy! A great choice to get started

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions