diff options
author | Matteo Collina <hello@matteocollina.com> | 2019-12-12 16:40:50 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2019-12-18 02:17:22 +0300 |
commit | 0c18c49f0efd8296e7cf73680c8df0674ac4131c (patch) | |
tree | 906455e4e8e0d93c14d8d77ddf2d9c061513963a /doc | |
parent | df5ae1a8ef449082d9a950732b452560c2d6d779 (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.md | 4 |
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--> |