News for hackers. Stuff that matters.
Re:console.log entries in Node.js does not get garbage colle... by theogravity on Tuesday June 19, 2018 @02:40PM (#17349227)
Update:

Via bnoordhuis (Ben Noordhuis - node.js dev):

I see you posted this over at https://www.reddit.com/r/node/comments/8s2y7b/til_consolelog... but your summary there is wrong. You should update it because it's going to mislead others.

The state of things:

A connected inspector client will cause console.log() to buffer a bounded number of messages (currently 1,000.)

Libuv can buffer messages when you print faster than the sink (tty, pipe, file, etc.) can consume them. That's something you can fix by pacing your writes.

There are no comments on this comment yet.