emacs-devel
[Top][All Lists]
Advanced

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

Re: Compiling Elisp to a native code with a GCC plugin


From: Andreas Schwab
Subject: Re: Compiling Elisp to a native code with a GCC plugin
Date: Wed, 15 Sep 2010 18:28:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> Andreas Schwab <address@hidden> 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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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