This is absolutely marvellous - I will try to do this - as this is my first attempt at patching and compiling it will take a day or two as I will have to discover the exact procedure.
One of the (many ) reasons I use Geany for Java in preference to using the standard Java tools is that Geany scales much better on large files: it responds quickly and predictably with far fewer distracting glitchs and unexpected slow downs. I greatly appreciate your efforts to eliminate this problem - it makes a big difference.
Thanks,
Phil
Philip R Brenan
On Fri, Dec 11, 2015 at 3:51 PM, Jiří Techet notifications@github.com wrote:
Alright, just tried with the profiler and the big part of the problem should be solved by the patch here:
techee@a11f82b https://github.com/techee/geany/commit/a11f82b7bca2697b41cbf01cf3151aad608f4e63
It doesn't fix the slowness completely but at least it should fix the non-linear part of it. With about 4000 lines from your example about 75% of time was spent by rehighlighting the document. The remaining 25% were spent by the parser (I'm afraid we cannot do much with this).
If you are able to recompile, could you try the patch if it helps?
— Reply to this email directly or view it on GitHub https://github.com/geany/geany/issues/791#issuecomment-163970875.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/791#issuecomment-163974909