Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear ref-counted locals vars when out of scope #38

Closed
mmoskal opened this issue May 12, 2016 · 2 comments
Closed

clear ref-counted locals vars when out of scope #38

mmoskal opened this issue May 12, 2016 · 2 comments

Comments

@mmoskal
Copy link
Member

mmoskal commented May 12, 2016

For example:

if (...) {
  let x = "a" + "b"
  ...
  // implict 'x = null' here
}

This can free significant amount of memory, especially if 'x' happen to be outside of any function.

@abchatra
Copy link
Contributor

@mmoskal is this still valid?

@mmoskal
Copy link
Member Author

mmoskal commented Sep 28, 2016

Yes. It requires some live variable analysis. We could also re-use global and local variable slots. It's not critical but certainly in the nice-to-have category.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants