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)
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)