Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

Better upvalue management in closures #26

Open
mna opened this issue Sep 25, 2013 · 0 comments
Open

Better upvalue management in closures #26

mna opened this issue Sep 25, 2013 · 0 comments
Milestone

Comments

@mna
Copy link
Owner

mna commented Sep 25, 2013

Right now closures are "dumb", each function value keeps a reference to its whole environment recursively up until the module function. This makes closures easy to implement, but it keeps alive all values, regardless of whether or not they are actually used in the closure.

For better memory management, analyze the required values and keep only what's required.

@mna mna mentioned this issue Sep 25, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant