Skip to content

Lazy import of pandas #19

Description

@danielhollas

This is a low-hanging fruit for speeding up the import of ipyoptimade package.

pandas is currently imported only in src/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

pipx install tuna
python -Ximporttime -c "import ipyoptimade" 2> importtime.out
tuna importtime.out

To get this

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions