Re: [code] Re: [textadept] High CPU usage with text lexer

From: Mitchell <m.att.foicica.com>
Date: Tue, 30 Sep 2014 17:39:37 -0400 (Eastern Daylight Time)

Hi Joshua,

On Mon, 29 Sep 2014, Joshua Krmer wrote:

> On 2014-09-25, 14:37, Mitchell wrote:
>
>> I've checked in a change to Scintillua[1] that hopefully should fix
>> the issue. It should be available in Textadept's nightly build for
>> tonight.
>
> I have tested today the latest nightly, and unfortunately, the issue is
> not solved. Here is a way to reproduce it:
>
> In an empty buffer, keep pasting the string "1234567890*" by pressing
> the paste shortcut repeatedly. The CPU usage keeps rising continuously.
> When the line has a length of ca. 2000 characters, textadept uses all
> the available CPU cycles (CPU usage ca. 100 %) on my system.
>
> If I do the same test with the ANSI C lexer active, CPU usage is only
> 2 to 3 %.

Thanks for the reproducable issue. I have identified the problem and will
fix it in the next release. (It is folding related, and disabling folding
still does not fix it.) If you'd like a quick fix, change the line in
"lexers/text.lua" to this:

   local M = {_NAME = 'text', _foldsymbols = {}}

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 30 Sep 2014 - 17:39:37 EDT

This archive was generated by hypermail 2.2.0 : Wed 01 Oct 2014 - 06:54:40 EDT