Why is #Python so slooooow? 😩 Why having an interpreter when starting it takes longer than compiling a whole Go project? Why does it take 10 bloody seconds to run one simple unit test with the debugger attached? When I do the same in #PHP, it takes way less than a second, and feels instant enough to not be annoying. πŸ˜‘
@neo python isn't that slow! Sounds like something is up with your setup. I've had vscode act up like that on running tests before.
@iantriggs You are right; when running the same minimal test in a new and empty project, it’s perfectly fine. O_o
Is it possible that Python runs a lot of code from various __init__.py files spread out over the project before executing my test function, even though my test file doesn't import anything but pytest?
@neo uncached PHP is slow in the same way
@zopyx @neo absolutely not... Tests are not cached, PHP CLI scripts are fast.