-
Notifications
You must be signed in to change notification settings - Fork 914
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
Improve OmegaConfigLoader performance when global/variable interpolations are involved #4322
Comments
During the investigation, I found that there was a slow bit in |
Particularly, there is an obvious slow path kedro/kedro/config/omegaconf_config.py Lines 433 to 439 in 01c095b
|
Implemented suggestions mentioned by @noklam and Matthias (comment). Next steps would be to discuss on the suggestion made here which might need major backend change.
|
@Galileo-Galilei proposed the same in #2973 |
@ravi-kumar-pilla What's the before/after results of this PR? Is there a way to trigger the benchmarks from https://github.com/kedro-org/kedro-benchmark-results/ ? |
Hi @astrojuanlu , You can find some observations in the description of the PR - #4367 (comment) I tried running |
Description
Extending on the investigation in #3893 , OmegaConfigLoader lags in resolving catalog configurations when global/variable interpolations are involved.
Context
Some previous observations:
#3893 (comment)
#3893 (comment)
Steps to Reproduce
Run stress test which creates a single catalog with variable interpolations - https://github.com/kedro-org/kedro/blob/test/ocl-bottleneck/kedro_benchmarks/temp_investigate_ocl/ocl_plot_variables.py
Expected Result
Reduce the time spent on below methods (when interpolations are involved, the bottleneck seems to be
OmegaConf.to_container
)Actual Result
#3893 (comment)
Your Environment
pip show kedro
orkedro -V
): 0.19.9python -V
): 3.11The text was updated successfully, but these errors were encountered: