We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6929e2 commit 04c4c1fCopy full SHA for 04c4c1f
doc/api/fs.md
@@ -1897,6 +1897,11 @@ Any specified file descriptor has to support reading.
1897
*Note*: If a file descriptor is specified as the `path`, it will not be closed
1898
automatically.
1899
1900
+*Note*: `fs.readFile()` reads the entire file in a single threadpool request.
1901
+To minimize threadpool task length variation, prefer the partitioned APIs
1902
+`fs.read()` and `fs.createReadStream()` when reading files as part of
1903
+fulfilling a client request.
1904
+
1905
## fs.readFileSync(path[, options])
1906
<!-- YAML
1907
added: v0.1.8
0 commit comments