child_process: Avoid extra copy for string stdio
There's no need to create a new Buffer instance if we're just going to immediately call toString() at the end anyway. Better to create a string up front, and setEncoding() on the streams, and do a string concatenation instead.
parent
711d1934
Please register or sign in to comment