| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
As with #12860, is performance impacted by these changes? |
Sorry, something went wrong.
|
Should documentation be added for the new property? |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
|
do we want to document these properties? would it make sense to underscore prefix them and not publicly document them? |
Sorry, something went wrong.
|
I will run the benchmarks next week when I am back. |
Sorry, something went wrong.
|
@mcollina great thanks! we don't have a rush on this one, it's been open for a while so we should fix it right. |
Sorry, something went wrong.
|
@calvinmetcalf can you rebase? It's failing if I try to apply this. |
Sorry, something went wrong.
|
ok I'll rebase |
Sorry, something went wrong.
There was a problem hiding this comment.
nit: these could just be get() { ... }
Sorry, something went wrong.
|
Any benchmark results for this yet? |
Sorry, something went wrong.
|
@mscdex my fault. I've been busy and I did not have time. I'll get things done next week. |
Sorry, something went wrong.
|
I have pulled this on top of current master, and here are the result: $ cat compare-pr-12857.csv | Rscript benchmark/compare.R
improvement confidence p.value
net/net-c2s-cork.js dur=5 type="buf" len=1024 0.05 % 0.92585453
net/net-c2s-cork.js dur=5 type="buf" len=128 0.01 % 0.98394598
net/net-c2s-cork.js dur=5 type="buf" len=16 0.11 % 0.64262178
net/net-c2s-cork.js dur=5 type="buf" len=32 -0.63 % 0.49813748
net/net-c2s-cork.js dur=5 type="buf" len=4 0.69 % 0.22906509
net/net-c2s-cork.js dur=5 type="buf" len=512 -0.68 % 0.11614061
net/net-c2s-cork.js dur=5 type="buf" len=64 -0.10 % 0.88165041
net/net-c2s-cork.js dur=5 type="buf" len=8 0.22 % 0.49318844
net/net-c2s.js dur=5 type="asc" len=102400 0.12 % 0.79652780
net/net-c2s.js dur=5 type="asc" len=16777216 0.17 % 0.69953088
net/net-c2s.js dur=5 type="buf" len=102400 -0.03 % 0.95501291
net/net-c2s.js dur=5 type="buf" len=16777216 -0.18 % 0.60032466
net/net-c2s.js dur=5 type="utf" len=102400 -0.71 % 0.30724140
net/net-c2s.js dur=5 type="utf" len=16777216 0.13 % 0.71738184
net/net-pipe.js dur=5 type="asc" len=102400 -0.38 % 0.47130806
net/net-pipe.js dur=5 type="asc" len=16777216 -0.50 % 0.22687420
net/net-pipe.js dur=5 type="buf" len=102400 0.15 % 0.73656293
net/net-pipe.js dur=5 type="buf" len=16777216 0.34 % 0.34467836
net/net-pipe.js dur=5 type="utf" len=102400 -0.13 % 0.76703831
net/net-pipe.js dur=5 type="utf" len=16777216 -0.06 % 0.82737525
net/net-s2c.js dur=5 type="asc" len=102400 0.37 % 0.34771981
net/net-s2c.js dur=5 type="asc" len=16777216 1.08 % * 0.01600552
net/net-s2c.js dur=5 type="buf" len=102400 -0.10 % 0.76992876
net/net-s2c.js dur=5 type="buf" len=16777216 -0.01 % 0.97334494
net/net-s2c.js dur=5 type="utf" len=102400 0.44 % 0.53842239
net/net-s2c.js dur=5 type="utf" len=16777216 0.16 % 0.63315209
net/tcp-raw-c2s.js dur=5 type="asc" len=102400 -0.20 % 0.67051959
net/tcp-raw-c2s.js dur=5 type="asc" len=16777216 0.21 % 0.30793474
net/tcp-raw-c2s.js dur=5 type="buf" len=102400 -0.29 % 0.28911115
net/tcp-raw-c2s.js dur=5 type="buf" len=16777216 -0.04 % 0.86124577
net/tcp-raw-c2s.js dur=5 type="utf" len=102400 -0.30 % 0.57333080
net/tcp-raw-c2s.js dur=5 type="utf" len=16777216 -0.18 % 0.60026095
net/tcp-raw-pipe.js dur=5 type="asc" len=102400 1.06 % 0.77474299
net/tcp-raw-pipe.js dur=5 type="asc" len=16777216 3.02 % 0.34301122
net/tcp-raw-pipe.js dur=5 type="buf" len=102400 -6.20 % 0.11493755
net/tcp-raw-pipe.js dur=5 type="buf" len=16777216 0.53 % 0.86680583
net/tcp-raw-pipe.js dur=5 type="utf" len=102400 4.27 % 0.26626613
net/tcp-raw-pipe.js dur=5 type="utf" len=16777216 -0.77 % 0.80117040
net/tcp-raw-s2c.js dur=5 type="asc" len=102400 0.70 % 0.10070950
net/tcp-raw-s2c.js dur=5 type="asc" len=16777216 0.36 % 0.06191144
net/tcp-raw-s2c.js dur=5 type="buf" len=102400 0.05 % 0.91598591
net/tcp-raw-s2c.js dur=5 type="buf" len=16777216 0.05 % 0.82678721
net/tcp-raw-s2c.js dur=5 type="utf" len=102400 0.60 % 0.32760427
net/tcp-raw-s2c.js dur=5 type="utf" len=16777216 -0.21 % 0.28876196
IMHO we can land this, there are no regressions. |
Sorry, something went wrong.
|
ok let me fix the nits and rebase |
Sorry, something went wrong.
|
ok done |
Sorry, something went wrong.
|
Can we use 'readable' and 'writable' as the prefixes instead of just 'read' and 'write' respectively, to further reduce the likelihood of a clash with userland? I'm still -1 on adding all of these individual properties to everyone's streams. I would rather see something like an object housing all of these... |
Sorry, something went wrong.
|
Currently we are creating an accessory object (the state) for every Readable and Writable, and two for Duplex (and descendants). This is already a bottleneck, so I'm -1 on adding a new object for both Readable and Writable. BTW, I'm fine with documenting the _ properties, and/or remapping those. |
Sorry, something went wrong.
|
If we're going to document the existing ones, I'd prefer to get rid of the _ prefix. |
Sorry, something went wrong.
|
@jasnell that is not feasible either, as everyone is using those _ properties. |
Sorry, something went wrong.
|
@mscdex are you still -1 on this? This might require some more reviews/approvals.. @nodejs/ctc as we discussed in the last meeting. |
Sorry, something went wrong.
|
@mcollina Yes, I am still -1 in general to these and the related changes from other PRs. |
Sorry, something went wrong.
|
@calvinmetcalf Do you think you could rebase this? Otherwise I guess one of us could do that. |
Sorry, something went wrong.
|
I can do this in a week, or if someone is willing to help please go ahead
and land.
Il giorno mar 28 nov 2017 alle 08:02 Anna Henningsen <
notifications@github.com> ha scritto:
… @calvinmetcalf <https://github.com/calvinmetcalf> Do you think you could
rebase this? Otherwise I guess one of us could do that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12857 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADL46E03AzAdukGrmEWyFKEqE79BJ5Bks5s62KrgaJpZM4NR4Cu>
.
|
Sorry, something went wrong.
As part of the readableState/writableState mega issue nodejs#445, this removes all of the references to .length on those properties and replaces them with a readableLength and writableLength getter.
|
CI before landing: |
Sorry, something went wrong.
As part of the readableState/writableState mega issue #445, this removes all of the references to .length on those properties and replaces them with a readableLength and writableLength getter. See: #445 PR-URL: #12857 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
As part of the readableState/writableState mega issue #445, this removes all of the references to .length on those properties and replaces them with a readableLength and writableLength getter. See: #445 PR-URL: #12857 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
As part of the readableState/writableState mega issue #445, this removes all of the references to .length on those properties and replaces them with a readableLength and writableLength getter. See: #445 PR-URL: #12857 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Notable change:
* async_hooks:
- deprecate AsyncHooks Sensitive API and runInAsyncIdScope. Neither
API were documented. (Andreas Madsen)
#16972
* deps:
- update nghttp2 to 1.29.0 (James M Snell)
#17908
- upgrade npm to 5.6.0 (Kat Marchán)
#17535
- cherry-pick 50f7455 from upstream V8 (Michaël Zasso)
#16591
* events:
- remove reaches into _events internals (Anatoli Papirovski)
#17440
* http:
- add rawPacket in err of `clientError` event (XadillaX)
#17672
* http2:
- implement maxSessionMemory (James M Snell)
#17967
- add initial support for originSet (James M Snell)
#17935
- add altsvc support (James M Snell)
#17917
- perf_hooks integration (James M Snell)
#17906
* net:
- remove Socket.prototype.write (Anna Henningsen)
#17644
- remove Socket.prototype.listen (Ruben Bridgewater)
#13735
* repl:
- show lexically scoped vars in tab completion (Michaël Zasso)
#16591
* stream:
- rm {writeable/readable}State.length (Calvin Metcalf)
#12857
- add flow and buffer properties to streams (Calvin Metcalf)
#12855
* util:
- allow wildcards in NODE_DEBUG variable (Tyler)
#17609
* zlib:
- add ArrayBuffer support (Jem Bezooyen)
#16042
* Addedew collaborator**
- [starkwang](https://github.com/starkwang) Weijia Wang
* Addedew TSC member**
- [danbev](https://github.com/danbev) Daniel Bevenius
PR-URL: #18069
Notable change:
* async_hooks:
- deprecate AsyncHooks Sensitive API and runInAsyncIdScope. Neither
API were documented. (Andreas Madsen)
#16972
* deps:
- update nghttp2 to 1.29.0 (James M Snell)
#17908
- upgrade npm to 5.6.0 (Kat Marchán)
#17535
- cherry-pick 50f7455 from upstream V8 (Michaël Zasso)
#16591
* events:
- remove reaches into _events internals (Anatoli Papirovski)
#17440
* http:
- add rawPacket in err of `clientError` event (XadillaX)
#17672
* http2:
- implement maxSessionMemory (James M Snell)
#17967
- add initial support for originSet (James M Snell)
#17935
- add altsvc support (James M Snell)
#17917
- perf_hooks integration (James M Snell)
#17906
- Refactoring and cleanup of Http2Session and Http2Stream destroy
(James M Snell) #17406
* net:
- remove Socket.prototype.write (Anna Henningsen)
#17644
- remove Socket.prototype.listen (Ruben Bridgewater)
#13735
* repl:
- show lexically scoped vars in tab completion (Michaël Zasso)
#16591
* stream:
- rm {writeable/readable}State.length (Calvin Metcalf)
#12857
- add flow and buffer properties to streams (Calvin Metcalf)
#12855
* util:
- allow wildcards in NODE_DEBUG variable (Tyler)
#17609
* zlib:
- add ArrayBuffer support (Jem Bezooyen)
#16042
* Addedew collaborator**
- [starkwang](https://github.com/starkwang) Weijia Wang
* Addedew TSC member**
- [danbev](https://github.com/danbev) Daniel Bevenius
PR-URL: #18069
Notable change:
* async_hooks:
- deprecate AsyncHooks Sensitive API and runInAsyncIdScope. Neither
API were documented. (Andreas Madsen)
#16972
* deps:
- update nghttp2 to 1.29.0 (James M Snell)
#17908
- upgrade npm to 5.6.0 (Kat Marchán)
#17535
- cherry-pick 50f7455 from upstream V8 (Michaël Zasso)
#16591
* events:
- remove reaches into _events internals (Anatoli Papirovski)
#17440
* http:
- add rawPacket in err of `clientError` event (XadillaX)
#17672
* http2:
- implement maxSessionMemory (James M Snell)
#17967
- add initial support for originSet (James M Snell)
#17935
- add altsvc support (James M Snell)
#17917
- perf_hooks integration (James M Snell)
#17906
- Refactoring and cleanup of Http2Session and Http2Stream destroy
(James M Snell) #17406
* net:
- remove Socket.prototype.write (Anna Henningsen)
#17644
- remove Socket.prototype.listen (Ruben Bridgewater)
#13735
* repl:
- show lexically scoped vars in tab completion (Michaël Zasso)
#16591
* stream:
- rm {writeable/readable}State.length (Calvin Metcalf)
#12857
- add flow and buffer properties to streams (Calvin Metcalf)
#12855
* util:
- allow wildcards in NODE_DEBUG variable (Tyler)
#17609
* zlib:
- add ArrayBuffer support (Jem Bezooyen)
#16042
* Addedew collaborator**
- [starkwang](https://github.com/starkwang) Weijia Wang
* Addedew TSC member**
- [danbev](https://github.com/danbev) Daniel Bevenius
PR-URL: #18069
As part of the readableState/writableState mega issue #445, this removes all of the references to .length on those properties and replaces them with a readableLength and writableLength getter. See: nodejs/node#445 PR-URL: nodejs/node#12857 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
| Back | FazBrowse Home | New Git URL |
As part of the readableState/writableState mega issue #445, this
removes all of the references to .length on those properties and
replaces them with a readLength and writeLength getter.
cc @nodejs/streams
Checklist
Affected core subsystem(s)
streams, tls, net