emacs-devel
[Top][All Lists]
Advanced

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

Re: Elisp native profiler


From: Tomohiro Matsuyama
Subject: Re: Elisp native profiler
Date: Fri, 28 Sep 2012 18:14:43 +0900

The default value of profiler-sample-interval is now 1, but
I think it is too high frequent.  I've profiled the following
code, and found there is a huge mismatch between 1 and 10 of 
profiler-sample-interval value (1000ms vs 4000ms).

(defun tak (x y z)
  (if (<= x y)
      z
    (tak (tak (1- x) y z)
         (tak (1- y) z x)
         (tak (1- z) x y))))
(byte-compile 'tak)
(benchmark 1 '(tak 20 12 2))

How about setting the value to 9, for example?

    Tomohiro



reply via email to

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