GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — stream: refactor the objectMode assignment logic by rickyes · Pull Request #32949 · nodejs/node

Conversation

@rickyes

@rickyes rickyes commented Apr 20, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

~7% improvement. reduce repetitive judgments when options is undefined.

 streams/creation.js kind='duplex' n=50000000                    0.85 %      ±3.68% ±4.90% ±6.37%
 streams/creation.js kind='readable' n=50000000         ***      6.89 %      ±3.93% ±5.25% ±6.85%
 streams/creation.js kind='transform' n=50000000                 0.17 %      ±4.49% ±5.99% ±7.82%
 streams/creation.js kind='writable' n=50000000                 -1.35 %      ±3.37% ±4.48% ±5.84%

/cc @ronag

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@rickyes
stream: refactor the objectMode assignment logic
420a05f
@nodejs-github-bot nodejs-github-bot added the stream Issues and PRs related to Node.js streams. label Apr 20, 2020
@ronag

ronag commented Apr 20, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Didn't notice any performance diff when running locally, trying Benchmark CI.

https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/566/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rickyes

rickyes commented Apr 21, 2020

Copy link
Copy Markdown
Contributor Author

After I conducted another benchmark test locally, there was no performance difference. The difference between the two results was so big, I will close this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rickyes rickyes closed this Apr 21, 2020
This was referenced Aug 31, 2021
[Snyk] Security upgrade gatsby from 2.24.27 to 3.13.0 Dmarch28/node#31
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 3.13.0 kissofire/node#41
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 3.13.0 meghasfdc/node#41
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 ron-a20/node#40
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 Rednickle/node-1#27
Open
[Snyk] Security upgrade gatsby from 2.24.27 to 3.13.0 baby636/node#16
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 sitedata/node#31
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 molllyn1/node#20
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 aliceUnhinged613/node#31
Open
This was referenced Sep 12, 2021
[Snyk] Security upgrade gatsby from 2.24.27 to 3.13.0 Dmarch28/node#35
Open
[Snyk] Security upgrade gatsby from 2.24.27 to 3.13.0 baby636/node#20
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 wedataintelligence/node#12
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 137717unity/node#35
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 ron-a20/node#44
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 Rednickle/node-1#30
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 3.13.0 meghasfdc/node#44
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 3.13.0 kissofire/node#44
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 sitedata/node#35
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 molllyn1/node#25
Open
[Snyk] Fix for 1 vulnerabilities baby636/node#22
Open
[Snyk] Fix for 1 vulnerabilities Dmarch28/node#37
Open
[Snyk] Fix for 1 vulnerabilities ron-a20/node#45
Open
[Snyk] Fix for 1 vulnerabilities Rednickle/node-1#32
Open
[Snyk] Fix for 1 vulnerabilities meghasfdc/node#46
Open
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#36
Open
@137717unity 137717unity mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities 137717unity/node#122
Open
@baby636 baby636 mentioned this pull request Mar 22, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.13.0 baby636/node#136
Open
@kissofire kissofire mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities kissofire/node#124
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities aliceUnhinged613/node#123
Open
@ron-a20 ron-a20 mentioned this pull request Mar 22, 2024
[Snyk] Fix for 2 vulnerabilities ron-a20/node#121
Open
@wedataintelligence wedataintelligence mentioned this pull request Mar 23, 2024
[Snyk] Fix for 2 vulnerabilities wedataintelligence/node#105
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request May 13, 2024
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#127
Open
@molllyn1 molllyn1 mentioned this pull request May 13, 2024
[Snyk] Fix for 2 vulnerabilities molllyn1/node#111
Open
@ron-a20 ron-a20 mentioned this pull request May 13, 2024
[Snyk] Fix for 2 vulnerabilities ron-a20/node#126
Open
@kissofire kissofire mentioned this pull request May 13, 2024
[Snyk] Fix for 2 vulnerabilities kissofire/node#128
Open
@137717unity 137717unity mentioned this pull request May 14, 2024
[Snyk] Fix for 2 vulnerabilities 137717unity/node#128
Open
@baby636 baby636 mentioned this pull request May 14, 2024
[Snyk] Fix for 2 vulnerabilities baby636/node#149
Open
@wedataintelligence wedataintelligence mentioned this pull request May 14, 2024
[Snyk] Fix for 2 vulnerabilities wedataintelligence/node#111
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request May 15, 2024
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#129
Open
@kissofire kissofire mentioned this pull request May 20, 2024
[Snyk] Fix for 1 vulnerabilities kissofire/node#130
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request May 21, 2024
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#130
Open
@wedataintelligence wedataintelligence mentioned this pull request May 21, 2024
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#112
Open
@137717unity 137717unity mentioned this pull request May 21, 2024
[Snyk] Fix for 1 vulnerabilities 137717unity/node#129
Open
@molllyn1 molllyn1 mentioned this pull request May 21, 2024
[Snyk] Fix for 1 vulnerabilities molllyn1/node#113
Open
@ron-a20 ron-a20 mentioned this pull request May 22, 2024
[Snyk] Fix for 1 vulnerabilities ron-a20/node#127
Open
@wedataintelligence wedataintelligence mentioned this pull request Oct 9, 2024
[Snyk] Fix for 3 vulnerabilities wedataintelligence/node#127
Open
@ron-a20 ron-a20 mentioned this pull request Oct 9, 2024
[Snyk] Fix for 3 vulnerabilities ron-a20/node#142
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Oct 11, 2024
[Snyk] Fix for 4 vulnerabilities aliceUnhinged613/node#146
Open
@137717unity 137717unity mentioned this pull request Oct 13, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 137717unity/node#145
Open
@kissofire kissofire mentioned this pull request Oct 13, 2024
[Snyk] Security upgrade gatsby from 2.13.73 to 3.13.0 kissofire/node#147
Open
@137717unity 137717unity mentioned this pull request Oct 20, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 137717unity/node#146
Open
@kissofire kissofire mentioned this pull request Oct 20, 2024
[Snyk] Security upgrade gatsby from 2.13.73 to 3.13.0 kissofire/node#148
Open
@opekeye opekeye mentioned this pull request Oct 20, 2024
[Snyk] Security upgrade gatsby from 2.13.73 to 3.13.0 opekeye/node#17
Open
@molllyn1 molllyn1 mentioned this pull request Oct 22, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 molllyn1/node#131
Open
@wedataintelligence wedataintelligence mentioned this pull request Oct 22, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.13.0 wedataintelligence/node#129
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

stream Issues and PRs related to Node.js streams.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@rickyes @ronag @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.