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

Implement parts of lua_gc #100

Open
daurnimator opened this issue Dec 28, 2017 · 2 comments
Open

Implement parts of lua_gc #100

daurnimator opened this issue Dec 28, 2017 · 2 comments

Comments

@daurnimator
Copy link
Member

daurnimator commented Dec 28, 2017

Collection:

  • IE has window.CollectGarbage
  • If node is started with --expose-gc then you get a global.gc function.
  • Chrome can be started with a similar flag to get window.gc
  • Opera has window.opera.collect()

Accounting:

  • Webkit browsers have performance.memory.usedJSHeapSize
@giann
Copy link
Member

giann commented Dec 28, 2017

This could demand a lot of work. Maybe the payoff is not worth it.

@daurnimator
Copy link
Member Author

We can go arg-by-arg, browser-by-browser. We'll figure it out as we go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants