Commit b25b694
doc: add performance notes for fs.readFile
Issue #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: James M Snell <jasnell@gmail.com>
Fixes: #25741
PR-URL: #36880
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 385d0df commit b25b694
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3126 | 3126 | | |
3127 | 3127 | | |
3128 | 3128 | | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
3129 | 3151 | | |
3130 | 3152 | | |
3131 | 3153 | | |
| |||
6152 | 6174 | | |
6153 | 6175 | | |
6154 | 6176 | | |
| 6177 | + | |
6155 | 6178 | | |
6156 | 6179 | | |
6157 | 6180 | | |
| |||
0 commit comments