Open jf-li00 opened 9 months ago
The current "in memory" backend uses Clone
for all substate layers, which is extremely inefficient -- that's why it's only in tests. I'm planning to add two proper in-memory backends in the future that uses a) journaling (where state commit is cheap) and b) overlay (where state revert is cheap).
I propose extracting the 'In Memory' functionality as a standalone module so other developer can import those data structures for their own purpose conveniently(e.g. write a simple custom simulator for EVM contracts)