emacs-devel
[Top][All Lists]
Advanced

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

Re: The current state of the comment-cache branch


From: Stefan Monnier
Subject: Re: The current state of the comment-cache branch
Date: Wed, 28 Dec 2016 12:10:31 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> Also in the latest case where a major slow down showed up in CC-mode,
>> the problem was reversed: CC-mode had some special code for when
>> open-paren-in-column-0-is-defun-start is non-nil (can't remember what
>> it was for), which was the cause of the slow down, IIRC.

> Bug #22884.  This isn't quite accurate.  The slowdown happened when C
> Mode thought that the "(" in the comment was a BOD and in repeated
> scanning to point (which is typically harmless) was scanning many times
> over ~40k characters.

The thing I don't understand in this explanation is that if
open-paren-in-column-0-is-defun-start is set to nil the problem did not
show up, yet setting it to nil means that the scanning was done over
*more* than 40K characters so it should have made the problem worse.


        Stefan




reply via email to

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