-
Notifications
You must be signed in to change notification settings - Fork 905
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
Kedro initialization is slow #3033
Comments
#1476 |
Try python - X importtime to isolate the module import time. The warmup time is interesting, could it be the first time you run the project and it spends time on compiling the bytecode? Can you try deleting the pyc files? |
Sorry I forgot about #1476, I'll copy my comment there tomorrow. |
Do you think we could build this into |
Would be rad to have this and probably more things under a |
(Related: #2879)
I've noticed that Kedro takes some time to initialize itself, which adds to the time needed to run the actual command.
For example,
kedro info
on aspaceflights
project takes a bit more than 6 seconds on my machine (M1 MacBook Pro from 2022):After warmup (i.e. executing the command again immediately after) this can go down to ~1 second.
Ahead of this I did some profiling using https://github.com/joerick/pyinstrument and https://www.speedscope.app/, and this is what I found:
For
kedro info
with instrumentation on and no warmup, 7.5 seconds were spent importing the variouskedro.framework.cli.*
subpackages, and 1.7 seconds actually executing the function.This can become a problem in situations when low latency is desired.
The text was updated successfully, but these errors were encountered: