ethereum / hevm

symbolic EVM evaluator
https://hevm.dev
GNU Affero General Public License v3.0
223 stars 45 forks source link

Optimize W256, Addr conversion to ByteString #481

Closed elopez closed 4 months ago

elopez commented 4 months ago

Description

The previous code caused increased memory allocations and unnecessary garbage collection.

Echidna built with this change showed a ~12% improvement in execution time on 1000000 runs in a test codebase.

Checklist

arcz commented 4 months ago

That's cool!