othree / yajs.vim

YAJS.vim: Yet Another JavaScript Syntax for Vim
http://www.vim.org/scripts/script.php?script_id=4974
Vim License
688 stars 41 forks source link

set cursorline makes a noticeable impact on scrolling performance on comments and nested objects #102

Open FuzzOli87 opened 8 years ago

FuzzOli87 commented 8 years ago

I recently started getting terrible slowdown and it became more obvious when I had deeply nested objects in the code. I noticed it before in comments but I don't have large segments of comments so I kind of dismissed it. But right now I'm writing some test with some mock-data and the object literals really kill scrolling performance. After some playing around, yajs.vim seems to be the culprit when cursorline is on.

othree commented 8 years ago

Could you try latest version. I have one commit is trying to solve performance issue.

If it still very slow. I will need your help to do two more test on different branch (perf/noblock and perf/trans).

callaars commented 7 years ago

This is still an issue as far as I can tell.