-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Text input between quotes is slow #1327
Comments
Easy to reproduce. Also very weird. |
Yep good catch! |
I think that this is definitely a large document vs small document issue... I can't reproduce it in smaller files, it has to be a larger file |
Ok almost 100% sure this is the culprit, related to something I did I think. And if so it is bad. We have a check in modehandler to create undo points when brackets are open/closed. It executes this:
In nextPairedChar we iterate the whole document....only to check if the character is right next to it. This should be an easy fix to just check the characters adjacent in for the correct match, instead of the whole document THEN comparing location. |
What did you do?
Install
vim
extension.open a large
js
file. e.g : https://code.jquery.com/jquery-3.1.1.jsTyping
I
switch to insert mode.Typing
"
and other letters (e.g: "Hello") at first line. The other letters takes a long time to appear.Technical details:
The text was updated successfully, but these errors were encountered: