Skip to content

perf(rpc): pool encoded raw bytes returned by eth_signTransaction #11578

@svlachakis

Description

@svlachakis

EthRpcModule.eth_signTransaction allocates byte[] raw = TxDecoder.Instance.Encode(tx, ...).Bytes per call. TxDecoder.Encode itself does two allocations: the internal RlpStream buffer and a ToArray() copy.

Goal: return Raw to the JSON serializer without intermediate heap allocations.

#11517 (comment)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions