You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to increase performance of using Typer? For example, I could imagine there are some flags one can disable?
I'm running Typer on a Raspberry Pi 3, which is - of course - not as fast as my MacBook.
Stats
$ time python test.py
hello
real 0m2.071s
user 0m1.936s
sys 0m0.112s
For my own, larger but not excessive, CLI
$ time python cli.py --help
real 0m5.411s
user 0m4.656s
sys 0m0.301s
I saw in other issues I could perhaps make my imports dynamic to shave off some time, but perhaps there are some Typer-related features I can leverage.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
Is there any way to increase performance of using Typer? For example, I could imagine there are some flags one can disable?
I'm running Typer on a Raspberry Pi 3, which is - of course - not as fast as my MacBook.
Stats
$ time python test.py hello real 0m2.071s user 0m1.936s sys 0m0.112s
For my own, larger but not excessive, CLI
$ time python cli.py --help real 0m5.411s user 0m4.656s sys 0m0.301s
I saw in other issues I could perhaps make my imports dynamic to shave off some time, but perhaps there are some Typer-related features I can leverage.
Operating System
Linux
Operating System Details
Raspberry Pi 3
Typer Version
0.9.0
Python Version
3.9.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions