Skip to content

Conversation

vsemozhetbyt
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt commented Jun 16, 2017

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

benchmark, readline, repl, url, util

Use non-capturing grouping or remove capturing completely when:

  • capturing is useless per se, e.g. in test() check;
  • captured groups are not used afterward at all;
  • some of the later captured groups are not used afterward.

@nodejs-github-bot nodejs-github-bot added the benchmark Issues and PRs related to the benchmark subsystem. label Jun 16, 2017
Use non-capturing grouping or remove capturing completely when:

* capturing is useless per se, e.g. in test() check;
* captured groups are not used afterwards at all;
* some of the later captured groups are not used afterwards.
@vsemozhetbyt vsemozhetbyt changed the title benchmark: remove needless RegExp capturing benchmark, libs: remove needless RegExp capturing Jun 16, 2017
@vsemozhetbyt
Copy link
Contributor Author

#13720 is added as a new commit here according to the request.

@addaleax @cjihrig @jasnell You may consider recalling your reviews for now.

@refack refack added the lib / src Issues and PRs related to general changes in the lib or src directory. label Jun 16, 2017
@vsemozhetbyt
Copy link
Contributor Author

CI was green for #13720. Run another to be on the safe side:

https://ci.nodejs.org/job/node-test-pull-request/8699/

@vsemozhetbyt vsemozhetbyt added readline Issues and PRs related to the built-in readline module. repl Issues and PRs related to the REPL subsystem. url Issues and PRs related to the legacy built-in url module. util Issues and PRs related to the built-in util module. labels Jun 16, 2017
@vsemozhetbyt
Copy link
Contributor Author

vsemozhetbyt commented Jun 16, 2017

If I recall correctly we use lib/src label for C++ source only)

@vsemozhetbyt vsemozhetbyt removed the lib / src Issues and PRs related to general changes in the lib or src directory. label Jun 16, 2017
vsemozhetbyt added a commit that referenced this pull request Jun 19, 2017
Use non-capturing grouping or remove capturing completely when:

* capturing is useless per se, e.g. in test() check;
* captured groups are not used afterwards at all;
* some of the later captured groups are not used afterwards.

PR-URL: #13718
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
vsemozhetbyt added a commit that referenced this pull request Jun 19, 2017
Use non-capturing grouping or remove capturing completely when:

* capturing is useless per se, e.g. in test() check;
* captured groups are not used afterwards at all;
* some of the later captured groups are not used afterwards.

PR-URL: #13718
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@vsemozhetbyt
Copy link
Contributor Author

Landed in bed3579...8789904

@vsemozhetbyt vsemozhetbyt deleted the benchmark-no-needless-capture branch June 19, 2017 15:13
addaleax pushed a commit that referenced this pull request Jun 20, 2017
Use non-capturing grouping or remove capturing completely when:

* capturing is useless per se, e.g. in test() check;
* captured groups are not used afterwards at all;
* some of the later captured groups are not used afterwards.

PR-URL: #13718
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
addaleax pushed a commit that referenced this pull request Jun 20, 2017
Use non-capturing grouping or remove capturing completely when:

* capturing is useless per se, e.g. in test() check;
* captured groups are not used afterwards at all;
* some of the later captured groups are not used afterwards.

PR-URL: #13718
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@addaleax addaleax mentioned this pull request Jun 21, 2017
addaleax pushed a commit that referenced this pull request Jun 21, 2017
Use non-capturing grouping or remove capturing completely when:

* capturing is useless per se, e.g. in test() check;
* captured groups are not used afterwards at all;
* some of the later captured groups are not used afterwards.

PR-URL: #13718
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
addaleax pushed a commit that referenced this pull request Jun 21, 2017
Use non-capturing grouping or remove capturing completely when:

* capturing is useless per se, e.g. in test() check;
* captured groups are not used afterwards at all;
* some of the later captured groups are not used afterwards.

PR-URL: #13718
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@addaleax addaleax mentioned this pull request Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmark Issues and PRs related to the benchmark subsystem. readline Issues and PRs related to the built-in readline module. repl Issues and PRs related to the REPL subsystem. url Issues and PRs related to the legacy built-in url module. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants