ApeWorX / ape

The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
https://apeworx.io
Apache License 2.0
897 stars 133 forks source link

perf: lazy load treatment for `ape-ethereum` core plugin #2356

Closed antazoey closed 3 weeks ago

antazoey commented 3 weeks ago

What I did

this plugin is heavily imported from

before

In [1]: %time import ape_ethereum
CPU times: user 2.09 s, sys: 545 ms, total: 2.63 s
Wall time: 1.71 s

after

In [1]: %time import ape_ethereum
CPU times: user 8.22 ms, sys: 2.44 ms, total: 10.7 ms
Wall time: 9.53 ms

How I did it

How to verify it

Checklist