From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel Subject: Re: goops and memoization Date: Wed, 20 Nov 2002 22:28:50 -0500 Sender: guile-devel-admin@gnu.org Message-ID: References: Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037849496 21493 80.91.224.249 (21 Nov 2002 03:31:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2002 03:31:36 +0000 (UTC) Cc: Dirk Herrmann , Neil Jerram , 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 18Ei3x-0005aO-00 for ; Thu, 21 Nov 2002 04:31:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Ei1d-0005ho-00; Wed, 20 Nov 2002 22:29:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18Ei1U-0005Q9-00 for guile-devel@gnu.org; Wed, 20 Nov 2002 22:29:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18Ei1P-00059S-00 for guile-devel@gnu.org; Wed, 20 Nov 2002 22:28:58 -0500 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Ei1O-00055o-00 for guile-devel@gnu.org; Wed, 20 Nov 2002 22:28:54 -0500 Original-Received: from linnaeus ([18.42.2.46]) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 18Ei1L-0002iw-00; Thu, 21 Nov 2002 04:28:51 +0100 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 18Ei1K-00055z-00; Wed, 20 Nov 2002 22:28:50 -0500 Original-To: djurfeldt@nada.kth.se Original-Cc: djurfeldt@nada.kth.se In-Reply-To: (Mikael Djurfeldt's message of "Wed, 20 Nov 2002 22:11:31 -0500") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) 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:1733 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1733 Mikael Djurfeldt writes: > Currently, compile-method only makes sure the method has a local > next-method binding (specific to this method cache entry) if that is > needed. However, there are plans to let it make powerful > optimizations of the code, with great potential of reducing overhead. > > It seems to me that what you need to do is to run the tail of the > cmethod (BODY-FORM1 ...) through your memoizer. That should fix it. (An alternative solution is to implement compile-method in C, memoizing the source code while walking through it. In fact, that could mean that we don't need to call procedure-source => no need to unmemoize code.) _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel