Skip to content

Cache sub-commands and hints to avoid pkg_resources load #34

Open
@mwatts15

Description

@mwatts15

The pkg_resources module import load takes a long time (~100ms on my machine) in CLI startup. It would be preferable not to import pkg_resources for every cli execution to avoid the cost of importing pkg_resources. This also means not calling iter_entry_points for every cli execution, so we need to cache the results of iter_entry_points execution as well: either the entry point names or the results of loading the entry points. For the sake of speed, it's acceptable to require an extra step to update the cache for new installs after first running a newly-installed owm, however the first run of owm should not require any extra steps other than the normal install procedures to run successfully with all sub-commands and hits available.

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