Repository navigation
vim-plug does unnecessary loading of Python and Ruby DLLs - #1344
Merged
Merged
Conversation
Vim with python/dyn, python3/dyn, or ruby/dyn doesn't load the
interpreter core DLL until the first command is issued to that
interpreter. Running has('python'), has('python3'), or has('ruby')
pulls the respective interpreter core DLL. This is described in
`:h has-python` for Python. For Ruby it isn't mentioned in docs,
but confirmed directly.
With Neovim or modern Vim with jobs, vim-plug doesn't need to use either
Python or Ruby, so avoid pulling their core DLLs by placing the has()
checks later in their conditions. This avoids pulling those DLLs at all.
`python` variable already checks for `!use_job`.
When falling back to Python, check for Python 3 presence first. This avoids pulling Python 2 at all when Python 3 is available.
- Match the order of the has() checks in s:update_impl - Avoid loading the Python 2 library after Python 3
Owner
|
Merged, thanks a lot! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Even though vim-plug uses jobs on neovim/vim with jobs, vim-plug still loads Python and Ruby core DLLs in dynamic builds due to incorrect has() checks placement. I have fixed those checks.