Open danielhollas opened 6 months ago
I'll just note that the next big offender is optimade.models
.
I suspect (but did not verify) that this is due to pydantic models. I wonder if using the defer_build
option, as discussed here would improve that. But that would have to be made in the optimade
package.
Okay, cool! Let's do pandas first. BTW, the performance test by @superstar54 was did with old aiida-core 2.4 without your performance improvements.
This is a low-hanging fruit for speeding up the import of
ipyoptimade
package.pandas
is currently imported only insrc/ipyoptimade/subwidgets/output_summary.py
I've already done the same in AWB, so this win should directly translate into faster app load speed. (locally I see ~200ms difference, would probably be bigger in the Demo container).
cc @superstar54 @unkcpz
For reference, I benchmark the import time with
To get this