Skip to content

buffer: use for...of#30962

Closed
trivikr wants to merge 1 commit into
nodejs:masterfrom
trivikr:use-for-of-buffer
Closed

buffer: use for...of#30962
trivikr wants to merge 1 commit into
nodejs:masterfrom
trivikr:use-for-of-buffer

Conversation

@trivikr

@trivikr trivikr commented Dec 14, 2019

Copy link
Copy Markdown
Member

Searched for regular expression for \([^\.]*.length in lib and made changes in buffer.js

Refs: #30910 (comment)

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

@nodejs-github-bot nodejs-github-bot added the buffer Issues and PRs related to the buffer subsystem. label Dec 14, 2019
@cjihrig

cjihrig commented Dec 14, 2019

Copy link
Copy Markdown
Contributor

Can you consolidate these PRs? All of the separate PRs makes for a lot of noise.

@trivikr

trivikr commented Dec 14, 2019

Copy link
Copy Markdown
Member Author

Can you consolidate these PRs?

I've posted PRs specific to submodules - buffer, stream, http, tls

A single PR might get blocked/delayed/might not land in old versions/etc because of changes specific to any of the submodules.
For example, for...of in stream won't be landing on 10.x #30960 (review)

@cjihrig

cjihrig commented Dec 14, 2019

Copy link
Copy Markdown
Contributor

You could use separate commits in a single PR.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@SimonSchick

Copy link
Copy Markdown
Contributor

Would be curious to know how much affects concat performance.

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep this as-is.

@trivikr trivikr closed this Dec 15, 2019
@trivikr trivikr deleted the use-for-of-buffer branch December 15, 2019 20:51
@trivikr trivikr mentioned this pull request Dec 24, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buffer Issues and PRs related to the buffer subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants