Verified Commit 1f1812ab authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Increase performance of typer autocompletion

Locally the autocompletion time was reduced
from ~1.3s to ~0.3s.

Testing was done by the following cmd:
time _CLIVE_COMPLETE=1 python -X importtime clive/main.py --help

Still some work has to be done to properly
type hint pydantic-based classes.

Related issue in typer:
https://github.com/tiangolo/typer/issues/231

Related solution for this problem:
https://github.com/initialcommit-com/git-sim/pull/77
parent 62c5e767
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment