4 ms·
imports run arbitrary Python code, making them faster is the same as making every other language feature faster
by dataangel 1y ago
imports 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.