EmEditor (text editor) Forum Index
   Regular Expressions
     syntax highlighting with regular expressions: performance
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
mldisibio
Posted on: 11/15/2009 2:09 pm
Just popping in
Joined: 10/9/2009
From:
Posts: 6
syntax highlighting with regular expressions: performance
Not sure if this is the best forum, since I am referring to regular expressions in syntax (esy) files, and not for Find and Replace.

I've discovered that with more than two or three regular expressions for syntax highlighting, EmEditor performance suffers a noticeable hit. Keystrokes have a delay, other windows flicker, and the the CPU activity spikes to 80% if the user is typing very fast (or backspaces through half a sentence) and the document has a couple hundred lines.

I can post some specific examples, but I think this is a general issue. I read a few other posts along the same lines. But what really alerted my attention was skimming through several of the posted syntax files, and seeing that very few make use of regular expressions.

EmEditor is a fantasitic software, so this is not a complaint. Rather I would like to know:
1. Is there any tips or tricks to improve performance? (For example, I noticed that an RE that spans an entire line (^....something...$) does not have as bad a hit as expressions looking for in-line patterns.
2. Should I attempt to accomplish this with a macro that is somehow on a timer, so that the highlight engine does not kick off on every keystroke?
3. Is there a setting I am missing, similar to the AutoComplete configuration, where one can set a timer for scanning and refresh delays?

Thanks!
Flat Previous Topic | Next Topic


Subject Poster Date
 » syntax highlighting with regular expressions: performance mldisibio 11/15/2009 2:09 pm
     Re: syntax highlighting with regular expressions: performance Yutaka 11/17/2009 1:33 pm
       Re: syntax highlighting with regular expressions: performance mldisibio 11/18/2009 9:52 am
         Re: syntax highlighting with regular expressions: performance Kord 12/20/2009 5:42 pm

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文