ApeWorX / ape

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

perf: able to load local project faster #2359

Closed antazoey closed 3 weeks ago

antazoey commented 3 weeks ago

What I did

crushing bottle necks 1 by 1

Avoids config processing in the project init and move to path to property to make loading project faster

How to verify it

easiest way:

ipython

before:

In [1]: %time from ape import project
CPU times: user 2.93 s, sys: 580 ms, total: 3.51 s
Wall time: 2.57 s

after

%time from ape import project
CPU times: user 1.97 s, sys: 554 ms, total: 2.52 s
Wall time: 1.6 s

Checklist