tirkarthi commented on pull request #22613: URL: https://github.com/apache/airflow/pull/22613#issuecomment-1086788871
The imports might need an optimization as I see noticeable slowdown and click based cli having more imports. You can use `importtime` to see the import tree as it's large to paste : https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPROFILEIMPORTTIME . The timings are on Python 3.10 ``` (.env) ➜ airflow git:(cli-roles) ✗ python -X importtime -m airflow.cli 2>&1 | grep 'import time' | wc 2764 19350 230153 (.env) ➜ airflow git:(cli-roles) ✗ python -X importtime -m airflow 2>&1 | grep 'import time' | wc 614 4300 40655 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
