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: `ape_node` plugin load time improvement #2378

Closed antazoey closed 2 weeks ago

antazoey commented 2 weeks ago

What I did

noooooo i wish this was in the last release, so close to have a faster default Ape ecosystem..

(ipython)

before

In [1]: %time import ape_node
CPU times: user 1.14 s, sys: 142 ms, total: 1.28 s
Wall time: 1.29 s

after:

In [1]: %time import ape_node
CPU times: user 7.93 ms, sys: 3.39 ms, total: 11.3 ms
Wall time: 10 ms

BASICALLY once all our plugins have this treatment, stuff like ape console will be able to launch faster, if my research is correct. And i already have ideas of where the bottleneck moves to. We're optimizing.

How I did it

How to verify it

Checklist