berachain / polaris

Polaris is a modular implementation of the Ethereum Virtual Machine (EVM). It can be easily integrated into any consensus engine or application, including the Cosmos-SDK.
https://polaris.berachain.dev/
Other
1.08k stars 356 forks source link

perf(cosmos): Run the conversion of cosmos events <> eth logs in parallel #461

Open calbera opened 1 year ago

calbera commented 1 year ago

In the Cosmos EventManager used during stateful precompile execution, on lines 78 and 90, we can run these processes of adding a cosmos emitted event to the eth logs journal in parallel. Have to carefully consider parallelization here.

calbera commented 1 year ago

Investigate whether this will mess up the order of logs added in the journal.