emacs-devel
[Top][All Lists]
Advanced

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

Re: Compilation to native


From: Richard Stallman
Subject: Re: Compilation to native
Date: Tue, 23 Mar 2004 12:48:20 -0500

    The loop _is_ purely computational.

I was fooled by the indentation, which makes it appear
that the call to current-time-string is inside the loop.
See?

    (defun silly-loop (n)
      "Return time before and after N iterations of a loop."
      (let ((t1 (current-time-string)))
        (while (> (setq n (1- n))
                              0))
            (list t1 (current-time-string))))

Anyway, such a small speedup is not worth the trouble.
Compilation of CCL may be worth while.  Or optimization
of the CCL interpreter may be possible.




reply via email to

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