Hacker News new | ask | show | jobs
by dataangel 262 days ago
imports run arbitrary Python code, making them faster is the same as making every other language feature faster
1 comments

Can 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.