From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Wed, 15 Sep 2010 18:28:58 +0200 Message-ID: References: <87bp805ecr.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284568543 27324 80.91.229.12 (15 Sep 2010 16:35:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 16:35:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 15 18:35:42 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovux9-00036X-55 for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2010 18:35:41 +0200 Original-Received: from localhost ([127.0.0.1]:48918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovux5-0001RC-Lf for ged-emacs-devel@m.gmane.org; Wed, 15 Sep 2010 12:35:19 -0400 Original-Received: from [140.186.70.92] (port=47229 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovur3-0004QJ-Oz for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:29:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ovuqy-0000Sz-MK for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:29:05 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:56385) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovuqy-0000SZ-HN for emacs-devel@gnu.org; Wed, 15 Sep 2010 12:29:00 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 652721C15538 for ; Wed, 15 Sep 2010 18:28:59 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-113-189.dynamic.mnet-online.de [88.217.113.189]) by mail.mnet-online.de (Postfix) with ESMTP id 5069D1C000B7 for ; Wed, 15 Sep 2010 18:28:59 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id DE846CA299; Wed, 15 Sep 2010 18:28:58 +0200 (CEST) X-Yow: Here I am at the flea market but nobody is buying my urine sample bottles.. In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 15 Sep 2010 17:35:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:130226 Archived-At: Lars Magne Ingebrigtsen writes: > Andreas Schwab writes: > >> Trivial regexp searches are already optimized to bypass the regexp >> engine. Doing a similar check in looking-at might be worthwhile. > > I did some trivial benchmarking with > > (while (search-backward "\n(defun " nil t))) > > and the equivalent re-search-backward in a buffer in a loop, and the > search-backward version was about 8x faster. How did you measure that? When I tried I did not see any significant difference. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."