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

refactor: split up `ape.types` modules #2337

Closed antazoey closed 1 month ago

antazoey commented 1 month ago

What I did

splits up ape.types so you can import what-you-need faster at times. needed for https://github.com/ApeWorX/ape/pull/2333/files#diff-cc0db0562414127f60137f02bf5994e135314bef3002ca7422972200134418c0

importing from specific modules and having those be small increases performance of modules that only need those. i still expect users to import from the root init files tho

performance gains hard to realize w/o the rest of it, just making the bigger PR smaller, as this was a needed part for kicking the bottleneck down the road

How I did it

How to verify it

Checklist