Skip to content
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

Optimize startup time when user site is disabled. #131

Closed
wants to merge 1 commit into from

Conversation

methane
Copy link
Member

@methane methane commented Feb 16, 2017

Skip getusersitepackages() call and indirect import of sysconfig
module.

Roughly, python -s -c '42' becomes 14ms from 15ms.

Skip getusersitepackages() call and indirect import of sysconfig
module.

Roughly, `python -s -c '42'` becomes 14ms from 15ms.
@methane
Copy link
Member Author

methane commented Feb 16, 2017

Oh, I didn't expect USER_SITE is used even when user site is disabled...
This 1ms is unavoidable...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant