code_field icon indicating copy to clipboard operation
code_field copied to clipboard

[Enhancement] Improve performance, when huge block of code is edited

Open subhamayd2 opened this issue 4 years ago • 3 comments

When I am editing a huge block of code, the editor feels a bit sluggish. This is probably happening because on each change, the whole block of code is being parsed for highlighting. Is there any way that can improve the performance? I was thinking, if the parsing can be debounced somehow, that might improve the performance.

subhamayd2 avatar Jul 15 '21 17:07 subhamayd2

Yep, we could also perform local highlighting, since most of the time local changes don't affect the rest of the document!

BertrandBev avatar Jul 15 '21 19:07 BertrandBev

Agreed. Something like, only parsing the line that is currently being edited.

subhamayd2 avatar Jul 15 '21 19:07 subhamayd2

Any improvement on this? Looks like we have same situation until now.

alberteije avatar Mar 26 '23 15:03 alberteije