From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: guile performance - Ackermann function: way slower than emacs, slower still if compiled Date: Thu, 13 Aug 2009 00:28:35 +0200 Message-ID: References: <87ab2aotw1.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250117304 9672 80.91.229.12 (12 Aug 2009 22:48:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Aug 2009 22:48:24 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Aug 13 00:48:17 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MbMcC-0000Gt-8R for guile-devel@m.gmane.org; Thu, 13 Aug 2009 00:48:16 +0200 Original-Received: from localhost ([127.0.0.1]:43045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbMc9-0006zw-UV for guile-devel@m.gmane.org; Wed, 12 Aug 2009 18:48:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbMRW-00029O-DQ for guile-devel@gnu.org; Wed, 12 Aug 2009 18:37:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbMRS-00027Y-LT for guile-devel@gnu.org; Wed, 12 Aug 2009 18:37:13 -0400 Original-Received: from [199.232.76.173] (port=41276 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbMRS-00027Q-FO for guile-devel@gnu.org; Wed, 12 Aug 2009 18:37:10 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:53450 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbMRO-0005tS-K7; Wed, 12 Aug 2009 18:37:07 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 832712781F; Wed, 12 Aug 2009 18:37:05 -0400 (EDT) Original-Received: from unquote (unknown [79.156.145.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id BBBEE2781C; Wed, 12 Aug 2009 18:37:03 -0400 (EDT) In-Reply-To: <87ab2aotw1.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 08 Aug 2009 23:52:46 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: A96A4D06-8790-11DE-A4D4-AEF1826986A2-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9095 Archived-At: Heya, On Sat 08 Aug 2009 23:52, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Andy Wingo writes: > >> Perhaps the deal is that 1+ is not being inlined. It seems to be calling >> out to the 1+ procedure, which is a primitive, actually making it a >> bit slower. I'll see what I can do. > > Currently, invoking subrs conses, which is Bad(TM). Indeed. > Code that keeps invoking `1+' and `1-' must suffer from this. Not any more! There are add1 and sub1 instructions now. A --=20 http://wingolog.org/