Skip to content

Reduce startup time of service #11

@Joelius300

Description

@Joelius300

reduce startup time of service (takes >10s to import all libraries and then ~1s to fetch everything, calculate the forecast, and write it to the db). Could analyze what modules are loaded after all the imports in main.py. See if TYPE_CHECKING helps in modules that import a lot just for typing.

Ps. similarly, the cli stuff should wait with heavy imports until the cli params are validated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions