Unverified Commit 408e9d3a authored by James M Snell's avatar James M Snell
Browse files

doc: add performance notes for fs.readFile

Issue https://github.com/nodejs/node/issues/25741

 discusses a number of
performance considerations for fs.readFile, which was changed in Node.js
10.x to split discreet chunk reads over multiple event loop turns. While
the fs.readFile() operation is certainly slower than it was pre 10.x,
it's unlikely to be faster. Document the performance consideration and
link back to the issue for more in depth analysis.

Signed-off-by: default avatarJames M Snell <jasnell@gmail.com>
Fixes: https://github.com/nodejs/node/issues/25741

PR-URL: https://github.com/nodejs/node/pull/36880


Reviewed-By: default avatarAntoine du Hamel <duhamelantoine1995@gmail.com>
parent 88153dc1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment