You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I opened the file in vty mode with vim keybindings and then tried to go to the end of the file with G in vim mode. It consumed all of my memory and I had to reboot my system.
The text was updated successfully, but these errors were encountered:
From the author of the mode #143 (comment). It seems yi-mode-javascript is abandoned. I think the best option to solve this is to make a fastMode equivalent that just uses the lexer to do the highlighting.
@noughtmare Alright, thanks for the direction. I was using the Javascript mode to see how Yi fared for incremental parsing on large files. #105 leads me to believe that until that issue the leak issue is fixed there will be performance issues.
@codygman A fastMode would only use the lexer and therefore bypass the whole incremental parser.
But the performance problems in the javascript mode are much more severe than for example in the haskell mode. So I think improvement is still possible.
Using Yi (33306ea) and javascript-mode on a very large javascript file from react:
https://github.com/facebook/react/blob/e35724a03d66bb73dbbec4dc4b12a5170bfe2615/src/__mocks__/vendor/third_party/WebComponents.js
I opened the file in vty mode with vim keybindings and then tried to go to the end of the file with
G
in vim mode. It consumed all of my memory and I had to reboot my system.The text was updated successfully, but these errors were encountered: