From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: expansion, memoization, and evaluation... Date: 05 Dec 2002 17:27:27 +0100 Sender: guile-devel-admin@gnu.org Message-ID: <87ptsg1le8.fsf@zagadka.ping.de> References: <87r8cyh5ec.fsf@raven.i.defaultvalue.org> <87heduh43b.fsf@raven.i.defaultvalue.org> <8765uah1fe.fsf@raven.i.defaultvalue.org> <878yz5fq1l.fsf@raven.i.defaultvalue.org> <87wumpe3be.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039107984 15548 80.91.224.249 (5 Dec 2002 17:06:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2002 17:06:24 +0000 (UTC) Cc: djurfeldt@nada.kth.se, Dirk Herrmann , guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18JzRm-00040i-00 for ; Thu, 05 Dec 2002 18:05:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18JzHH-0004ze-00; Thu, 05 Dec 2002 11:55:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18JzGm-0004iE-00 for guile-devel@gnu.org; Thu, 05 Dec 2002 11:54:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18JzGE-0004SK-00 for guile-devel@gnu.org; Thu, 05 Dec 2002 11:54:34 -0500 Original-Received: from [129.217.163.30] (helo=zagadka.ping.de) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18JzGE-0004S9-00 for guile-devel@gnu.org; Thu, 05 Dec 2002 11:54:02 -0500 Original-Received: (qmail 22911 invoked by uid 1000); 5 Dec 2002 16:27:27 -0000 Original-To: Rob Browning In-Reply-To: <87wumpe3be.fsf@raven.i.defaultvalue.org> Original-Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1805 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1805 Rob Browning writes: > (call scm_add (ref x_4432) (ref y_2231)) > > but later, as we get smarter about flow analysis, etc. we might be > able in some cases to generate: > > (plus (ref x_4432) (ref y_2231)) > > which would be *way* faster. Just some random thoughts since I have done this in guile-lightning: we should definitely inline fixnum arithmetic and call out of line code only for non-fixnums or overflows. That gives a big improvement over just calling scm_sum all the time. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel