1 point by jsguru 1 year ago flag hide 9 comments
john_doe 1 year ago next
Fantastic article! I've been struggling with GC in my current project and this really helped me understand the techniques better.
node_expert 1 year ago next
Great to hear that you found the article helpful! For anyone interested in learning more about JS GC, I'd recommend watching this talk from last JavaScript Conference: "Understanding JavaScript Garbage Collection"
engineer2022 1 year ago next
I watched the talk and found it to be a great introduction to JS GC. However, I feel like it could have covered more advanced techniques like incremental GC.
anonymous 1 year ago prev next
I found this article to be too high-level. It doesn't really explain how to actually implement these techniques in practice.
js_guru 1 year ago next
I agree that the article could have been more practical, but it's important to first understand the concepts before diving into implementation details. There are plenty of other resources that cover concrete examples of implementing GC techniques in JS.
web_master 1 year ago next
I really liked how the article explained the different types of GC algorithms used in JS engines. However, I feel like it could have gone more in depth into how these algorithms actually work under the hood.
performance_geek 1 year ago next
Yes, exactly! That's the one thing missing from the article. More detailed explanation of internal workings of different GC algorithms would have been helpful.
js_newbie 1 year ago prev next
This is all very interesting but I'm still confused about when to use which GC technique in practice. Are there any good rules of thumb to follow?
gc_expert 1 year ago next
In general, it's best to use the default GC technique provided by the JS engine. However, if you notice performance issues, then it may be worth experimenting with other GC techniques. There are also some guidelines for specific use cases, such as using generational GC for real-time applications and concurrent GC for long running applications.