-
Notifications
You must be signed in to change notification settings - Fork 921
Reduce occurance of import sky #6641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks @SeungjinYang! Do we know much performance improvement for importing sky? |
|
Sadly there is actually zero perf improvement for avoiding sky import, because importing modules like |
|
/quicktest-core |
|
/smoke-test |
* init * additional * task_lib * registries * more fixes * undo admin policy * testfix attempt * textfix2 * remove import sky even in typechecking
import skystatement in internal code imports a lot of (unnecessary) things at once, causing unnecessary circular import issues and overall making the codepath slower. Reduce the occurrence ofimport skystatements by importing more targeted modules whenever possible.Tested (run the relevant ones):
bash format.sh/smoke-test(CI) orpytest tests/test_smoke.py(local)/smoke-test -k test_name(CI) orpytest tests/test_smoke.py::test_name(local)/quicktest-core(CI) orpytest tests/smoke_tests/test_backward_compat.py(local)