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: Lars Magne Ingebrigtsen
Subject: Re: Compiling Elisp to a native code with a GCC plugin
Date: Wed, 15 Sep 2010 17:35:55 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

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.

-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

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