-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest: slow collection for car/tests/
#1184
Comments
It's all the imports. E.g.
Specifically, functions such as this one and this one that import stuff using |
Parametrizing could be done using |
Nice find, I'm supportive of removing the dynamic imports. In fact, I think it's preferable to regardless of this. |
The first import of the compiled cpp packages is slow. Not sure if anything can be done there.
|
The following flame graph running on a VM ( Showed a fair bit of time spent in Found the related github issues: The latter suggests a performance regression in
Additionally, modifying
Has If downgrading is unacceptable working with upstream |
|
can/tests/
is 20x faster to collect thancar/tests/
.My first suspicion is the use of parameterized. Parameterizing is super important for running all the tests on different car models, so it's worth confirming that it's this and making it faster. Is it faster to just use a for loop?
For bounty, need a good root cause and get it <= 0.1s unless there's some reason we can't.
The text was updated successfully, but these errors were encountered: