Skip to content

slow to import dpdata #526

@link89

Description

@link89

I find that it would takes up to 30s to run just import dpdata on the login node of HPC. I did some investigation myself and find that it would load almost all the modules into memory when importing the dpdata module.

Here is the relative code:
https://github.com/deepmodeling/dpdata/blob/master/dpdata/__init__.py#L21-L30

Is it possible to just remove the __all__ expression? I think it is for users who like to use from dpdata import *, which is not a good practices IMO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions