-
Notifications
You must be signed in to change notification settings - Fork 120
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
num_to_str
boolean check makes Ultisnips
snippet engine laggy
#523
Comments
Thinking more about, I guess the #506 PR is not compliant with the The documentation states
In Python, booleans are implemented as a subclass of integers. |
No objection to reverting #506 . It wasn't given a strong justification |
Hi
Today I cloned the repository and installed the package directly instead from PyPi.
After reopening nvim I noticed that nvim was very laggy in all python files.
I found out that the issue was with my snippet engine
Ultisnips
.Deleting the package and reinstalling it from PyPi made the lag go away.
The version on PyPi is 4.3 and so I went through the git history to check where something significant changed.
I located the issue to be this PR #506.
This PR changes the
num_to_str
function to include a boolean check.The helper function is used in the
LegacyVim
object'seval
function here.Browsing through the Ultisnips source code reveals that it uses
vim.eval
at many places.Thus, this change is non-trivial in terms of Ultisnips performance.
I wonder what could be done to circument this issue?
The text was updated successfully, but these errors were encountered: