{"action":"created","issue":{"url":"https://api.github.com/repos/VSCodeVim/Vim/issues/438","repository_url":"https://api.github.com/repos/VSCodeVim/Vim","labels_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/438/comments","events_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/438/events","html_url":"https://github.com/VSCodeVim/Vim/issues/438","id":165283246,"number":438,"title":"Incremental search is laggy in large files","user":{"login":"johnfn","id":167745,"avatar_url":"https://avatars.githubusercontent.com/u/167745?v=3","gravatar_id":"","url":"https://api.github.com/users/johnfn","html_url":"https://github.com/johnfn","followers_url":"https://api.github.com/users/johnfn/followers","following_url":"https://api.github.com/users/johnfn/following{/other_user}","gists_url":"https://api.github.com/users/johnfn/gists{/gist_id}","starred_url":"https://api.github.com/users/johnfn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnfn/subscriptions","organizations_url":"https://api.github.com/users/johnfn/orgs","repos_url":"https://api.github.com/users/johnfn/repos","events_url":"https://api.github.com/users/johnfn/events{/privacy}","received_events_url":"https://api.github.com/users/johnfn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/VSCodeVim/Vim/labels/difficulty-medium","name":"difficulty-medium","color":"fbca04"},{"url":"https://api.github.com/repos/VSCodeVim/Vim/labels/help%20wanted","name":"help wanted","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T10:01:26Z","updated_at":"2016-07-21T04:29:28Z","closed_at":null,"body":"If you try to search for something in our massive actions.ts file, or another large file, VSCodeVim lags. This is unsurprising because the current search approach is to parse the entire file on every keystroke.\r\n\r\n\"So don't write 2000 line files, johnfn\"\r\n\r\nShush, that's not the point. The point is there are lots of easy win optimizations here. I did the dumbest thing that worked for the MVP. 😉 "},"comment":{"url":"https://api.github.com/repos/VSCodeVim/Vim/issues/comments/234154016","html_url":"https://github.com/VSCodeVim/Vim/issues/438#issuecomment-234154016","issue_url":"https://api.github.com/repos/VSCodeVim/Vim/issues/438","id":234154016,"user":{"login":"roblourens","id":323878,"avatar_url":"https://avatars.githubusercontent.com/u/323878?v=3","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T04:29:28Z","updated_at":"2016-07-21T04:29:28Z","body":"I think that limiting the number of matches to 1000 should get you most of the way there (VSCode does this in its own search) and we can also cache the matches and only invalidate when `searchString` changes, or the doc version changes. I'll take a crack at it."}}
{"actor":{"display_login":"roblourens"}}