Koder icon indicating copy to clipboard operation
Koder copied to clipboard

Very large syntax-highlighted files are slow to work with

Open waddlesplash opened this issue 7 years ago • 1 comments
trafficstars

e.g. generate a 3000+-line diff by doing git diff HEAD~20 >out.diff in the Haiku repo, and try to use the resulting diff in Koder. It will spike to 100% CPU quite often as you page up/down/etc. through the file. Notepad++ handles such files perfectly fine, so the issue it seems is not with Scintilla.

waddlesplash avatar Jun 28 '18 23:06 waddlesplash

Yup, it's trailing space highlighting. Indicators are pretty slow, I should probably style the whole file and then diff only the visible portion when editing. Right now it changes every time screen updates (which is pretty much all the time). Try disabling it and see if it's better.

KapiX avatar Jun 28 '18 23:06 KapiX