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
perf: defer module-level imports in main.py into main()
Move cli, console, env_utils, checkpoint, config_parser, and
version_check imports from module level into main(). These imports
trigger the full dependency chain (cfapi, models, PrComment, libcst,
requests, Rich) costing ~500ms on every CLI invocation — even for
simple commands that dont need most of these modules.
Also moves paneled_text import into print_codeflash_banner() and
passes process_pyproject_config as parameter to _handle_config_loading
to avoid a module-level reference.
0 commit comments