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: Wed, 05 Aug 2009 13:15:37 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249470963 7074 80.91.229.12 (5 Aug 2009 11:16:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2009 11:16:03 +0000 (UTC) Cc: guile-devel To: Ken Raeburn Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Aug 05 13:15:56 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 1MYeTK-0001uO-VH for guile-devel@m.gmane.org; Wed, 05 Aug 2009 13:15:55 +0200 Original-Received: from localhost ([127.0.0.1]:38900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYeTJ-0004zO-TE for guile-devel@m.gmane.org; Wed, 05 Aug 2009 07:15:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYeSu-0004gm-NK for guile-devel@gnu.org; Wed, 05 Aug 2009 07:15:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYeSq-0004dc-SG for guile-devel@gnu.org; Wed, 05 Aug 2009 07:15:28 -0400 Original-Received: from [199.232.76.173] (port=53606 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYeSq-0004dP-Mp for guile-devel@gnu.org; Wed, 05 Aug 2009 07:15:24 -0400 Original-Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:54532 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYeSq-0002SB-FV for guile-devel@gnu.org; Wed, 05 Aug 2009 07:15:24 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 6F06821658; Wed, 5 Aug 2009 07:15:23 -0400 (EDT) Original-Received: from unquote (unknown [82.123.246.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id AC7D821655; Wed, 5 Aug 2009 07:15:19 -0400 (EDT) In-Reply-To: (Ken Raeburn's message of "Tue, 4 Aug 2009 05:28:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: 44F63C70-81B1-11DE-A8CA-F699A5B33865-02397024!a-sasl-quonix.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:9032 Archived-At: Hi Ken, Replying a lot :) On Tue 04 Aug 2009 11:28, Ken Raeburn writes: > % time guile -c '(begin (load-compiled "ack.go") (ackermann 3 9))' > 48.728u 22.016s 1:10.75 99.9% 0+0k 0+0io 0pf+0w > % > > Not much better than loading the .scm file, and only better for small > values of n... in fact, with m=3 and n>=6 the performance seems worse > in the precompiled case: I ran this under kcachegrind and it seems that the penalty is leaving the VM for dispatching to `catch'. This is related to Daniel's issues leaving the VM for dynamic-wind. So it seems that's what I should work on. There are a number of other little issues, but this is the big one. Andy -- http://wingolog.org/