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

Ref counting vs GC #122

Open
giann opened this issue Dec 28, 2022 · 2 comments
Open

Ref counting vs GC #122

giann opened this issue Dec 28, 2022 · 2 comments
Labels
memory Memory related issues (GC, etc.) performance Improves performances

Comments

@giann
Copy link
Collaborator

giann commented Dec 28, 2022

See if ref counting could be better than GC.

To avoid freeing too often, we could table the freeing for when a threshold of garbage is reached.

@giann giann added performance Improves performances memory Memory related issues (GC, etc.) labels Dec 28, 2022
@erlend-sh
Copy link

Epic GC discussion on the similarly scoped Mun lang here: mun-lang/mun#206

@giann
Copy link
Collaborator Author

giann commented Sep 25, 2023

Epic GC discussion on the similarly scoped Mun lang here: mun-lang/mun#206

I like the idea of "running gc every frame". That could translate to running small sweep more often rather than potentially big sweeps depending on a threshold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory Memory related issues (GC, etc.) performance Improves performances
Projects
None yet
Development

No branches or pull requests

2 participants