node: remove idle gc · nodejs/node@d607d85 · GitHub
Skip to content

Commit d607d85

Browse files
committed
node: remove idle gc
Remove the idle garbage collector. Its purpose was to run the garbage collector when the application is idle but it never worked quite right. Many people have complained over the years that with heaps > 128 MB, a node.js process never sleeps anymore; instead, it spends nearly 100% of its CPU time trying to collect garbage. Back in the old days, idle GC probably was a good idea. But with V8's current incremental collector, idle gc appears to offer no time or space benefits whatsoever and indeed seems actively harmful. Remove it. Fixes #3870.
1 parent 8ccfed2 commit d607d85

1 file changed

Lines changed: 0 additions & 104 deletions

File tree

‎src/node.cc‎

Lines changed: 0 additions & 104 deletions

0 commit comments

Comments
 (0)