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: make `ape test --help` faster #2368

Closed antazoey closed 3 weeks ago

antazoey commented 3 weeks ago

What I did

before:

ape test --help  1.59s user 0.20s system 99% cpu 1.803 total

now:

ape test --help  1.27s user 0.17s system 98% cpu 1.461 total

note: the time of ape test --help (e.g. pytest --help) largely depends on so many other things - conftests, plugins, etc.

How I did it

move watch stuff out of cli directly and have it locally imported

How to verify it

Checklist