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: Thu, 16 Sep 2010 18:57:22 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Andreas Schwab <address@hidden> writes:

>> 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.

I just call the stuff I want to benchmark a gazillion times with my tiny
benchmark.el package:

(benchmark 10000 (goto-char (point-min)) (while (search-forward "\n(defun " nil 
t) (forward-line 1)))

Attachment: benchmark.el
Description: application/emacs-lisp

-- 
(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]