From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Compilation to native Date: Tue, 23 Mar 2004 12:48:20 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87eks0654s.fsf@sno.mundell.ukfsn.org> <87n06bp4ng.fsf@sno.mundell.ukfsn.org> <877jxccutf.fsf@sno.mundell.ukfsn.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1080065422 20756 80.91.224.253 (23 Mar 2004 18:10:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Mar 2004 18:10:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 23 19:10:08 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B5qLn-00019x-00 for ; Tue, 23 Mar 2004 19:10:07 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B5qLn-0008Ue-00 for ; Tue, 23 Mar 2004 19:10:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B5qJV-0004oK-9D for emacs-devel@quimby.gnus.org; Tue, 23 Mar 2004 13:07:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B5qIu-0004lu-3n for emacs-devel@gnu.org; Tue, 23 Mar 2004 13:07:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B5q5A-00017Z-Lr for emacs-devel@gnu.org; Tue, 23 Mar 2004 12:53:28 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B5q5A-00017O-10 for emacs-devel@gnu.org; Tue, 23 Mar 2004 12:52:56 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1B5q0i-0003DQ-1P; Tue, 23 Mar 2004 12:48:20 -0500 Original-To: Matthew Mundell In-reply-to: <877jxccutf.fsf@sno.mundell.ukfsn.org> (message from Matthew Mundell on 22 Mar 2004 23:42:52 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20810 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20810 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.