★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/27240Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path: simplify normalizeString #27240

Closed
wants to merge 1 commit into from

Conversation

Copy link
Member

@BridgeAR BridgeAR commented Apr 15, 2019

This improves the path.normalize() and path.resolve() performance a
very tiny bit.
One statement could never be truthy, another check could be simplified
and count is now monomorphic.

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

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 15, 2019

@nodejs-github-bot nodejs-github-bot added the path label Apr 15, 2019
@BridgeAR BridgeAR added the author ready label Apr 15, 2019
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 15, 2019

@lpinca
Copy link
Member

@lpinca lpinca commented Apr 15, 2019

Did you mean code instead of count in commit message?

This improves the `path.normalize()` and `path.resolve()` performance a
tiny bit.
One statement could never be truthy, another check could be simplified
and `code` is now monomorphic.
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 15, 2019

@danbev
Copy link
Member

@danbev danbev commented Apr 18, 2019

Landed in 9946c59.

@danbev danbev closed this Apr 18, 2019
danbev pushed a commit that referenced this issue Apr 18, 2019
This improves the `path.normalize()` and `path.resolve()` performance a
tiny bit.
One statement could never be truthy, another check could be simplified
and `code` is now monomorphic.

PR-URL: #27240
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@BridgeAR BridgeAR deleted the improve-path-performance branch Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready path
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants