diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-01-29 02:48:10 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-01-29 02:49:03 +0400 |
commit | 9836a4eeda1e2d43aad0923f1f72b364792629bc (patch) | |
tree | f9a43115eaca3a49f83c910d20ea363bef3b2b29 /benchmark/net/tcp-raw-pipe.js | |
parent | eaf76648a6ba05932465fdb2478a16ca4b6c17a6 (diff) |
stream_wrap: use `uv_try_write` where possible
Use `uv_try_write` for string and buffer writes, thus avoiding to do
allocations and copying in some of the cases.
Diffstat (limited to 'benchmark/net/tcp-raw-pipe.js')
-rw-r--r-- | benchmark/net/tcp-raw-pipe.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/net/tcp-raw-pipe.js b/benchmark/net/tcp-raw-pipe.js index 91c69e9b6c9..bda683985d4 100644 --- a/benchmark/net/tcp-raw-pipe.js +++ b/benchmark/net/tcp-raw-pipe.js @@ -51,7 +51,7 @@ function server() { if (nread < 0) fail(nread, 'read'); - var writeReq = {}; + var writeReq = { async: false }; err = clientHandle.writeBuffer(writeReq, buffer); if (err) |