From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.user Subject: Re: memory costs of storing lambdas? (correction) Date: Thu, 01 May 2003 13:38:52 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <16047.44607.580379.626517@localhost.localdomain> 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 1051789292 13942 80.91.224.249 (1 May 2003 11:41:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 May 2003 11:41:32 +0000 (UTC) Cc: djurfeldt@nada.kth.se Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu May 01 13:41:31 2003 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 19BCR2-0003bQ-00 for ; Thu, 01 May 2003 13:41:08 +0200 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 19BCQ6-0007X4-00 for guile-user@m.gmane.org; Thu, 01 May 2003 07:40:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19BCPD-0006xG-00 for guile-user@gnu.org; Thu, 01 May 2003 07:39:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19BCPC-0006wE-00 for guile-user@gnu.org; Thu, 01 May 2003 07:39:14 -0400 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19BCOs-0006gk-00 for guile-user@gnu.org; Thu, 01 May 2003 07:38:54 -0400 Original-Received: from barbara.blakulla.net ([213.212.21.238] helo=linnaeus) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 19BCOr-0005jW-00; Thu, 01 May 2003 13:38:53 +0200 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 19BCOq-0001v2-00; Thu, 01 May 2003 13:38:52 +0200 Original-To: hanwen@cs.uu.nl, guile-user@gnu.org In-Reply-To: (Mikael Djurfeldt's message of "Thu, 01 May 2003 11:36:02 +0200") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1889 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1889 Mikael Djurfeldt writes: > In your case, you also surround the closure with an environment > captured by the closure. This environment has the structure > (explained in the Guile docs): > > new-env = < frame, env > > frame = < formals, values > > formals = < 'style, '() > > values = < style-value, '() > > > So, you have 4 pairs for the environment Oops. The `formals' pair is constant, so it doesn't add to the cost of new environments. > So, in total, the object returned by `style-setter' above will > consume 12 Rather 11, then. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user