4 ms·
I don’t want lazy imports. That’s just makes performance shitty later and harder to debug. It’s a hacky workaround. What I want is for imports to not suck and
by forrestthewoods 1y ago
I don’t want lazy imports. That’s just makes performance shitty later and harder to debug. It’s a hacky workaround.
What I want is for imports to not suck and be slow. I’ve had projects where it was faster to compile and run C++ than launch and start a Python CLI. It’s so bad.
- dataangel 1y agoimports run arbitrary Python code, making them faster is the same as making every other language feature faster
- forrestthewoods 1y agoCan you show me a profile that demonstrate the slowness is because imports are running large amounts of arbitrary Python code? Maybe they shouldn't do that. Maybe libraries should be pushed to not run expensive arbitrary code execution at import time.