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: Sun, 21 Mar 2004 14:21:58 -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> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079897424 24340 80.91.224.253 (21 Mar 2004 19:30:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Mar 2004 19:30:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 21 20:30:14 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 1B58eD-00040c-00 for ; Sun, 21 Mar 2004 20:30:13 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B58eD-0007yJ-00 for ; Sun, 21 Mar 2004 20:30:13 +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 1B58d1-0003fy-Pb for emacs-devel@quimby.gnus.org; Sun, 21 Mar 2004 14:28:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B58b2-0003An-9F for emacs-devel@gnu.org; Sun, 21 Mar 2004 14:26:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B58aR-0002uY-3R for emacs-devel@gnu.org; Sun, 21 Mar 2004 14:26:50 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B58aQ-0002uU-Uu for emacs-devel@gnu.org; Sun, 21 Mar 2004 14:26:18 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1B58WE-0005dJ-MM; Sun, 21 Mar 2004 14:21:58 -0500 Original-To: Matthew Mundell In-reply-to: <87n06bp4ng.fsf@sno.mundell.ukfsn.org> (message from Matthew Mundell on 20 Mar 2004 21:52:51 +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:20696 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20696 (byte-compile 'silly-loop) (silly-loop 100000000) => ("Sat Feb 28 10:06:37 2004" "Sat Feb 28 10:06:53 2004") ; 16 secs (native-compile 'silly-loop) (silly-loop 100000000) => ("Sat Feb 28 10:17:13 2004" "Sat Feb 28 10:17:22 2004") ; 9 secs I don't think that a speedup of less than a factor of 2 would be worth installing something that might take substantial maintenance effort. However, it could be that this test is a bad test and doesn't really show the benefit of compilation. Maybe this loop spends most of the time inside current-time-string. How about trying something purely computational? The changes require NO_UNION_TYPE to be set, USE_LSB_TAG to be clear, and EMACS_INT to be an int. It will be necessary to remove these restrictions to make it ready to install. However, there's no harm working initially on this case and handling other cases later.