-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add excluded_search_path_prefixes setting - improves perf in WSL #1165
Conversation
c1d8117
to
ce59264
Compare
Just checking back to see whether there is anything I can do to help make this easier to review? Thanks! |
What would it take to get this pulled in? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the valuable contribution and for a very complete patch, @stuartleeks! Much appreciated! 👍
Please, consider my suggestions below.
89c6ab9
to
cf47db8
Compare
Thanks for the review @scorphus! I've included your suggestions and rebased on latest However, I notice that the automated checks are failing on python 2.7 at what looks to be the install stage. I'm not sure how the changes made would have caused this and have just tested installing on 2.7.17 locally and it seemed to work fine (unit and functional tests pass locally on 2.7.17, too). If you have any pointers for investigating further that would be greatly appreciated! |
Glad you're still on it, @stuartleeks. Sorry for the delay. I wonder why I'll get #1187 merged soon. Then you're free to rebase on top of master again. Thanks in advance! |
Ok, cool. I'll rebase again once #1187 is merged and hopefully this will be ready to go 😁 |
Allows filtering the paths used to search for commands Can be useful to filter out /mnt/ in WSL for performance
Co-authored-by: Pablo Aguiar <[email protected]>
cf47db8
to
de02df1
Compare
can't wait to update with these changes implemented with 3.31. I can't believe me commenting here kicked off the attention this needed to finally get merged and now I don't have to worry about manually building these changes into every new release haha |
Thanks for the update, @stuartleeks! I'll be merging this shortly! @mjohnson159 Thanks for commenting and bringing it to my attention. We really need to get 3.31 out, right!? It's been a long time since the last release. Would you be willing to help me confirming fixes for some other Windows-related issues? That would be super helpful! |
Thanks for contributing, @stuartleeks! ❤️ |
Allows filtering the paths used to search for commands
Can be useful to filter out
/mnt/
in WSL for performanceRunning in WSL with default config:
Running in WSL with
excluded_search_path_prefixes = ['/mnt/']
insettings.py
:This provides an approach to solving #1036 without having to remove Windows paths from
PATH
(which breaks various WSL use-cases)