nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] Debian Bug#785508: nano: python highlighting fragile in


From: Benno Schulenberg
Subject: Re: [Nano-devel] Debian Bug#785508: nano: python highlighting fragile in v2.4
Date: Tue, 19 May 2015 22:10:44 +0200

On Tue, May 19, 2015, at 15:30, Benno Schulenberg wrote:
> Do for example four times 'cat src/*.c >>testing.c' and then
> run 'src/nano testing.c'.  When then hitting Enter or ^K, it
> takes nano nearly a second to respond.

That first patch was a rough one.  Here is a better patch;
it avoids recalculating all the multiline data in some cases
when it's not needed.

It can probably be improved still further, but this one avoids
slowdowns when editing inside an area covered by a multiline
regex.  (To test, I run it on a tenfold concatenation of all
of nano's C source files.)

If you can, please test.

Benno

-- 
http://www.fastmail.com - Choose from over 50 domains or use your own

Attachment: recalc-multis-sparingly.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]