This significantly reduces the peak memory for the promise based readFile operation by reusing a single memory chunk after each read and strinigifying that chunk immediately. Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de> PR-URL: https://github.com/nodejs/node/pull/44295 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> |
||
|---|---|---|
| .. | ||
| bench-mkdirp.js | ||
| bench-opendir.js | ||
| bench-readdir.js | ||
| bench-readdirSync.js | ||
| bench-realpath.js | ||
| bench-realpathSync.js | ||
| bench-stat-promise.js | ||
| bench-stat.js | ||
| bench-statSync-failure.js | ||
| bench-statSync.js | ||
| read-stream-throughput.js | ||
| readfile-partitioned.js | ||
| readfile-promises.js | ||
| readfile.js | ||
| readFileSync.js | ||
| write-stream-throughput.js | ||
| writefile-promises.js | ||