From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Patch: Syntax and Hard Newlines Date: Sun, 26 Nov 2006 20:10:36 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164589865 10297 80.91.229.2 (27 Nov 2006 01:11:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2006 01:11:05 +0000 (UTC) Cc: rudalics@gmx.at, Herbert Euler , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 27 02:11:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GoV1M-00058y-6w for ged-emacs-devel@m.gmane.org; Mon, 27 Nov 2006 02:10:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoV1L-0007T9-Mq for ged-emacs-devel@m.gmane.org; Sun, 26 Nov 2006 20:10:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GoV18-0007Ro-Qx for emacs-devel@gnu.org; Sun, 26 Nov 2006 20:10:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GoV15-0007RY-OJ for emacs-devel@gnu.org; Sun, 26 Nov 2006 20:10:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoV15-0007RV-Lu for emacs-devel@gnu.org; Sun, 26 Nov 2006 20:10:39 -0500 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GoV13-0005jb-3t; Sun, 26 Nov 2006 20:10:37 -0500 Original-Received: from pastel.home ([70.53.194.10]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061127011035.HJJZ1596.tomts43-srv.bellnexxia.net@pastel.home>; Sun, 26 Nov 2006 20:10:35 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 13C69959C; Sun, 26 Nov 2006 20:10:36 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sat\, 25 Nov 2006 21\:01\:19 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62825 Archived-At: > I surprisedly found that it is faster of setting > `parse-sexp-lookup-properties' to t than setting it to nil. I'm not completely sure whether your measurements are fair. Have you made sure that syntax-ppss's caching doesn't give an unfair advantage to one or the other? I'd suggest to try with a real "micro-benchmark" and use parse-partial-sexp rather than syntax-ppss. You could also do it in a real buffer (e.g. turn off jit-lock, load a big Perl file: font-lock should place a fair bit of syntax-table properties in there, then call parse-partial-sexp with and without parse-sexp-lookup-properties). Try it also with other important affected commands such a forward-sexp. That it goes faster sounds *very* surprising indeed. > It is a surprise for me too, but anyway, I am convinced it is > ok for `parse-sexp-lookup-properties' to be t by default. > Stefan, do you think there is any risk this change might break > anything? I can't think of any case where it would cause a problem, no. OTOH I'm not sure it'd be worth taking the risk now, Stefan