[R-SIG-Mac] R Editor - syntax coloring

Simon Urbanek simon.urbanek at r-project.org
Mon May 2 17:43:34 CEST 2005


John,

On Apr 29, 2005, at 12:24 PM, John Marsland wrote:

> However, I have come across a problem. The new syntax coloring  
> option in the R Editor preferences looks great, but on large R  
> script files (mine is 500 lines) slows the refresh down incredibly.  
> Each key stroke take several 10's of seconds to action! It seems  
> like the colorisation is redone for the whole file on each key  
> stroke? I am running R on an iBook G4 800MHz with 640Mb and OS X  
> 10.3.9 -- those of you lucky enough to have a G5 might not notice  
> any problem!

Indeed I use a dual G4 and single G5, so I didn't quite notice, but  
now I ran some profiling and found the problem - it's in fact not the  
highlighting, but the function scan - i.e. the process that builds  
the function list in the toolbar. Both - syntax highlighting and  
function scan could be optimized... It will be available in the  
nightly build in the near future - I'll drop you a line when it's ready.

Cheers,
Simon



More information about the R-SIG-Mac mailing list