Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMatteo Collina <hello@matteocollina.com>2019-12-12 16:40:50 +0300
committerMyles Borins <mylesborins@google.com>2019-12-18 02:17:22 +0300
commit0c18c49f0efd8296e7cf73680c8df0674ac4131c (patch)
tree906455e4e8e0d93c14d8d77ddf2d9c061513963a /doc
parentdf5ae1a8ef449082d9a950732b452560c2d6d779 (diff)
stream: do not chunk strings and Buffer in Readable.from
PR-URL: https://github.com/nodejs/node/pull/30912 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/stream.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index a880bae5bbe..ad13e8ee6ad 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -1642,6 +1642,10 @@ readable.on('data', (chunk) => {
});
```
+Calling `Readable.from(string)` or `Readable.from(buffer)` will not have
+the strings or buffers be iterated to match the other streams semantics
+for performance reasons.
+
## API for Stream Implementers
<!--type=misc-->