Web Development Node.js Subjective
Aug 16, 2025

Explain memory management and garbage collection in Node.js.

Detailed Explanation
V8 uses generational garbage collection: young generation (Scavenge) and old generation (Mark-Sweep-Compact). Memory spaces: new space, old space, large object space, code space. Optimize by avoiding memory leaks, using object pools.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback