guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory costs of storing lambdas? (correction)


From: Mikael Djurfeldt
Subject: Re: memory costs of storing lambdas? (correction)
Date: Thu, 01 May 2003 13:38:52 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (gnu/linux)

Mikael Djurfeldt <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]