emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text


From: Stefan Monnier
Subject: Re: [Emacs-diffs] comment-cache 223d16f 2/3: Apply `comment-depth' text properties when calling `back_comment'.
Date: Mon, 14 Mar 2016 23:14:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> I've just timed this over xdisp.c.  A parse-partial-sexp from
> (point-min) to (point-max) took 0.031s.  A further scan, applying the
> `literal-cache' properties, took 0.054s.  That's 0.023s on a 1 MByte
> buffer.  That's not too serious.

Agreed.

> syntax-ppss throws away a lot more information that comment-cache does -
> it retains a parse state only every 20,000 characters, discarding
> everything else between those points.

That was just the original choice.  As discussed, this could be easily
changed if/when needed.  So far it's proved perfectly adequate.


        Stefan



reply via email to

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