◐ Shell
clean mode source ↗

[v14.x backport] fs: improve fsPromises readFile performance by Linkgoron · Pull Request #37703 · nodejs/node

@nodejs-github-bot added fs

Issues and PRs related to the fs subsystem / file system.

needs-ci

PRs that need a full CI run.

v14.x labels

Mar 10, 2021

Linkgoron added a commit to Linkgoron/node that referenced this pull request

Mar 11, 2021
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 azu mentioned this pull request

Mar 23, 2021
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

Aug 21, 2021
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

Aug 21, 2021
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