[Top][All Lists]

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

Re: Performance issue when fontifing in compile-mode.

From: Oleksandr Gavenko
Subject: Re: Performance issue when fontifing in compile-mode.
Date: Tue, 18 Jan 2011 17:57:38 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20101207 Thunderbird/3.1.7

On 18.01.2011 17:23, Oleksandr Gavenko wrote:
I use in log file:

-*- mode: compilation-minor; mode: auto-revert-tail; default-directory:
"~/devel" -*-

This allow easy and fast go to place where logger function make output
(in GNU format).

But logs with >2000 lines take 2-20 sec on parsing after revert.

To test you can use shell script:

echo "-*- mode: compilation-minor -*-" >test.txt
seq 1 10000 | while read line; do echo "src/file.c:345: dummy text" >>test.txt; done

and open test.txt file. It take 20 sec to be opened!

Same with

-*- mode: grep -*-

It is too long for parsing simple 270 KiB of text!!!!!

Which things have affect  on performance?

regex parsing or putting properties to buffer text?

Is that true: c-mode highlights only part on file not all?

reply via email to

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