FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[x] stream: simplify writable buffering by ronag · Pull Request #29026 · nodejs/node · GitHub

/ node Public

[x] stream: simplify writable buffering - #29026

Closed
ronag wants to merge 4 commits into
nodejs:masterfrom
nxtedition:stream-writable-buffered
Closed

[x] stream: simplify writable buffering#29026
ronag wants to merge 4 commits into
nodejs:masterfrom
nxtedition:stream-writable-buffered

Conversation

ronag commented Aug 6, 2019
edited
Loading

Copy link
Copy Markdown
Member

This simplifies the buffering logic in writable_stream and makes it easier to maintain and possiblinly optimize. Also minor speed and memory overhead optimisation.

I have a few ideas on how to further optimize this. But as a first step, simplify while maintaining current performance.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
 streams/writable-manywrites.js n=2000000                 4.05 %       ±4.69% ±6.24% ±8.13%

nodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Aug 6, 2019
ronag force-pushed the stream-writable-buffered branch from 03b2e7d to 44f11c9 Compare August 6, 2019 19:47
ronag changed the title stream: refactor writable buffering stream: simplify writable buffering Aug 6, 2019
ronag force-pushed the stream-writable-buffered branch 6 times, most recently from 86b6936 to 62b056c Compare August 6, 2019 20:10

ronag commented Aug 6, 2019
edited
Loading

Copy link
Copy Markdown
Member Author

Future TODO is to merge with #29028

ronag force-pushed the stream-writable-buffered branch 18 times, most recently from f5200a9 to 66056be Compare August 9, 2019 16:02

Copy link
Copy Markdown
Collaborator

Comment thread lib/_stream_writable.js Outdated
Comment thread lib/_stream_writable.js Outdated
Comment thread lib/_stream_writable.js Outdated
ronag force-pushed the stream-writable-buffered branch from 66056be to c09f94c Compare August 25, 2019 20:10

ronag commented Aug 25, 2019

Copy link
Copy Markdown
Member Author

@Trott: those travis errors look strange, what's going on?

Copy link
Copy Markdown
Collaborator

Trott commented Aug 25, 2019

Copy link
Copy Markdown
Member

@Trott: those travis errors look strange, what's going on?

Not sure but if it's not happening on Jenkins, I wouldn't worry about it. I just started the tests on Jenkins so let's see what happens...

Comment thread lib/_stream_writable.js Outdated
Comment thread lib/_stream_writable.js Outdated
Co-Authored-By: mscdex <mscdex@users.noreply.github.com>
ronag changed the title stream: simplify writable buffering [x] stream: simplify writable buffering Aug 28, 2019

ronag commented Aug 28, 2019

Copy link
Copy Markdown
Member Author

Closing for now

ronag closed this Aug 28, 2019
ronag mentioned this pull request Dec 15, 2019
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL