nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] more on color syntax highlighting


From: David Benbennick
Subject: Re: [Nano-devel] more on color syntax highlighting
Date: Tue, 8 Oct 2002 08:44:01 -0400
User-agent: Mutt/1.2.5.1i

On Tue, Oct 08, 2002 at 05:11:52PM +1000, Ken Tyler wrote:
> OK, I've applied the patch, sorry if you were already on top of it.

No, this is something no one thought to test.  Thanks for finding it!  
Please report any other problems you find.

> There is a bit of a problem on my 200 MHz PPC though, it slows things down
> a bit, page updates have a noticable delay, I wonder if any optimizations
> are possible or do I bite the bullet and get a dual 3 Ghz Pentium ?

Color support will get a little faster soon, and maybe a lot faster later.  
Until then, there are two things you can try to speed it up:

1) Use fewer multi-line regexes.  These can be really slow now.

2) Combine regexes.  For example, instead of saying

color green "\<float\>" "\<char\>" "\<int\>" "\<void\>"
color green "\<static\>" "\<const\>" "\<struct\>"

you could use

color green "\<(float|char|int|void|static|const|struct)\>"

which should be faster.

Attachment: pgppw_G1SzRhu.pgp
Description: PGP signature


reply via email to

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