Skip to content

chore: merge multi hash.update #14325

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

Merged
merged 2 commits into from
Oct 4, 2021
Merged

chore: merge multi hash.update #14325

merged 2 commits into from
Oct 4, 2021

Conversation

shfshanyue
Copy link
Contributor

@shfshanyue shfshanyue commented Sep 26, 2021

What kind of change does this PR introduce?

performance

Did you add tests for your changes?

no

Does this PR introduce a breaking change?

no

What needs to be documented once your changes are merged?

no

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@webpack-bot
Copy link
Contributor

@shfshanyue The most important CI builds failed. This way your PR can't be merged.

Please take a look at the CI results from azure (0 errors / 4 warnings) and appveyor (failure) and fix these issues.

@webpack-bot
Copy link
Contributor

Hi @shfshanyue.

Just a little hint from a friendly bot about the best practice when submitting pull requests:

Don't submit pull request from your own main branch. It's recommended to create a feature branch for the PR.

You don't have to change it for this PR, just make sure to follow this hint the next time you submit a PR.

@alexander-akait
Copy link
Member

Why?

@shfshanyue
Copy link
Contributor Author

Why?

Performance. Batch update is more efficient than executing the function multiple times

Copy link
Member

@sokra sokra left a comment

Choose a reason for hiding this comment

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

Good idea, but we want to avoid allocating arrays as hash.update will already combine strings by using an array

@sokra sokra merged commit 06da0cb into webpack:main Oct 4, 2021
@sokra
Copy link
Member

sokra commented Oct 4, 2021

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants