Skip to content

Reduce the time for CLI startup #1766

Open
@naveen521kk

Description

@naveen521kk

Description of the proposed feature

Currently, when running manim executable or module using (py -m manim), the whole module is imported which is large and takes a lot of time. I propose to move all the CLI handling stuff (ie manim.cli) to a new module called manim_cli which would not import manim until the command line arguments are parsed. By doing so, we can reduce the startup time.

How can the new feature be used?

Reduce the time to load manim command. If someone just wanted to see the help this would reduce the time they wait because manim wouldn't be imported in that case.

Additional comments

We would need to move the main module to src structure for this to work.

src \
    - manim
    - manim_cli

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionRequesting a feature or change for Manimneeds discussionThings which needs to be discussed before implemented.performance

    Type

    No type

    Projects

    Status

    🔖 Interested

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions