[v14.x backport] fs: improve fsPromises readFile performance by Linkgoron · Pull Request #37703 · nodejs/node
added
fs
v14.x labels
Linkgoron added a commit to Linkgoron/node that referenced this pull request
Improve the fsPromises readFile performance by allocating only one buffer, when size is known, increase the size of the readbuffer chunks, and dont read more data if size bytes have been read refs: nodejs#37583 Backport-PR-URL: nodejs#37703 PR-URL: nodejs#37608
azu
mentioned this pull request
Improve the fsPromises readFile performance by allocating only one buffer, when size is known, increase the size of the readbuffer chunks, and dont read more data if size bytes have been read refs: nodejs#37583 Backport-PR-URL: nodejs#37703 PR-URL: nodejs#37608
MoritzLoewenstein added a commit to MoritzLoewenstein/node that referenced this pull request
Improve the fsPromises readFile performance by allocating only one buffer, when size is known, increase the size of the readbuffer chunks, and dont read more data if size bytes have been read. Also moves constants to internal/fs/utils. refs: nodejs#37583 (Old) Backport-PR-URL: nodejs#37703 PR-URL: nodejs#37608
MoritzLoewenstein added a commit to MoritzLoewenstein/node that referenced this pull request
Improve the fsPromises readFile performance by allocating only one buffer, when size is known, increase the size of the readbuffer chunks, and dont read more data if size bytes have been read. Also moves constants to internal/fs/utils. refs: nodejs#37583 (Old) Backport-PR-URL: nodejs#37703 PR-URL: nodejs#37608
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters