Dan Anderson a écrit :
I experience major performance problems (maxed CPU for 20 seconds) when editing files with very long lines (138,374 chars, for example). The files are plain text log files. I do not have line wrap enabled. The problem only occurs only when the cursor is located in one of these very long lines. I thought the problem might be a scintilla problem, but the same problem does not appear to exist in another scintilla-based editor that I occasionally use. I'm running SciTE 1.69 on WinXP. Anyone else ever experience this problem? Is there a configuration that might help?

It is a very old problem with Scintilla...
It is more suited to regular source code editing, where most code have less than 80 chars long lines, that to edit any text files.
Except that XML (or even HTML) lines can be very long too...
I think it is in the way the lines are handled, Scintilla has to compute the length of each part (words) to properly display the line. Plus it might have issues with the WinAPI, at least on old platforms like Win98. I recall it works better on short segments (of same style) that on long runs of one style.

Some known workarounds can be to cut (hard wrap) your long lines with some tool, to activate the word wrapping (but it is still slow, IIRC, although slightly faster (?)), or to use some lexer that colourize parts of the line (even a special lexer just using two styles every n chars would be enough).

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to