nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] Debian Bug#785508: nano: python highlighting fragile in


From: Alexandre Detiste
Subject: Re: [Nano-devel] Debian Bug#785508: nano: python highlighting fragile in v2.4
Date: Thu, 21 May 2015 20:40:59 +0200
User-agent: KMail/4.14.2 (Linux/3.19.0-trunk-amd64; KDE/4.14.2; x86_64; ; )

Le mercredi 20 mai 2015, 13:15:58 Benno Schulenberg a écrit :
> 
> With the attached patch I've timed things, five Enters, and
> five times ^K (in an area unaffected by multiline regexes).
> Without the recalculation patch it gives me this:
> 
> Function 805ef96 took 17 milliseconds.
> Function 805ef96 took 10 milliseconds.
> Function 805ef96 took 10 milliseconds.
> Function 805ef96 took 10 milliseconds.
> Function 805ef96 took 10 milliseconds.
> 
> Function 804d564 took 21 milliseconds.
> Function 804d564 took 16 milliseconds.
> Function 804d564 took 18 milliseconds.
> Function 804d564 took 16 milliseconds.
> Function 804d564 took 21 milliseconds.
> 
> *With* the recalculation patch this:
> 
> Function 805efba took 854 milliseconds.
> Function 805efba took 848 milliseconds.
> Function 805efba took 839 milliseconds.
> Function 805efba took 840 milliseconds.
> Function 805efba took 838 milliseconds.
> 
> Function 804d57c took 846 milliseconds.
> Function 804d57c took 849 milliseconds.
> Function 804d57c took 849 milliseconds.
> Function 804d57c took 845 milliseconds.
> Function 804d57c took 848 milliseconds.
> 
> That is on a C file of a 185 thousand lines.
> Quite a considerable difference.
> 
> How do you fare with your 30 thousand lines of Python?

400 milliseconds for both insert and removal with the patch,

2ms per insert and 12ms per removal without the patch;
all of this with a very small deviation from the mean.

The identical perceived slowness was due to Shellinabox and the web proxy;
here the RPi is just across the room.




reply via email to

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