Reduce the time for CLI startup #2795
naveen521kk
started this conversation in
Suggestions and Proposals
Replies: 2 comments
-
@naveen521kk is there any explanation as to why |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's been like that forever. Someone should change it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 (iemanim.cli
) to a new module calledmanim_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 becausemanim
wouldn't be imported in that case.Additional comments
We would need to move the main module to
src
structure for this to work.Beta Was this translation helpful? Give feedback.
All reactions