diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-10-23 08:23:02 +0200 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2018-10-28 15:15:15 +0100 |
commit | f01518edfd83e2235d84485d87621e61f675b4a7 (patch) | |
tree | 20a562e8e3d86cce4787fef5847baaced6015a53 /test/sequential | |
parent | 0a23538e49e27b95ee35b051b6507eca74e2bb20 (diff) | |
download | android-node-v8-f01518edfd83e2235d84485d87621e61f675b4a7.tar.gz android-node-v8-f01518edfd83e2235d84485d87621e61f675b4a7.tar.bz2 android-node-v8-f01518edfd83e2235d84485d87621e61f675b4a7.zip |
src: improve StreamBase write throughput
Improve performance by transferring information about write status
to JS through an `AliasedBuffer`, rather than object properties
set from C++.
PR-URL: https://github.com/nodejs/node/pull/23843
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Diffstat (limited to 'test/sequential')
-rw-r--r-- | test/sequential/test-async-wrap-getasyncid.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-async-wrap-getasyncid.js b/test/sequential/test-async-wrap-getasyncid.js index 5ff8760daa..851a0b3fbc 100644 --- a/test/sequential/test-async-wrap-getasyncid.js +++ b/test/sequential/test-async-wrap-getasyncid.js @@ -239,7 +239,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check const err = handle.writeLatin1String(wreq, 'hi'.repeat(100000)); if (err) throw new Error(`write failed: ${getSystemErrorName(err)}`); - if (!wreq.async) { + if (!stream_wrap.streamBaseState[stream_wrap.kLastWriteWasAsync]) { testUninitialized(wreq, 'WriteWrap'); // Synchronous finish. Write more data until we hit an // asynchronous write. |