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

refactor(@angular-devkit/build-angular): reduce promise creation during estimated transfer size calculation #26701

Merged
merged 1 commit into from Dec 19, 2023

Conversation

clydin
Copy link
Member

@clydin clydin commented Dec 18, 2023

The promise creation overhead when calculating the estimated transfer size of the output files during an optimized build has been reduced by directly using the brotliCompress Node.js function instead of using a promisified variant. Node.js only provides a callback-based async variant for brotli compression. This change allows for a single promise to be used.

@clydin clydin added the target: minor This PR is targeted for the next minor release label Dec 18, 2023
@clydin clydin force-pushed the esbuild/reduce-promises-transfer-size branch 2 times, most recently from 93083ad to 1d1649b Compare December 19, 2023 00:39
…ng estimated transfer size calculation

The promise creation overhead when calculating the estimated transfer size of the output files during an
optimized build has been reduced by directly using the `brotliCompress` Node.js function instead of using
a promisified variant. Node.js Only provides a callback-based async variant for brotli compression. This
change allows for a single promise to be used.
@clydin clydin force-pushed the esbuild/reduce-promises-transfer-size branch from 1d1649b to 2196179 Compare December 19, 2023 00:40
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Dec 19, 2023
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 19, 2023
@clydin clydin merged commit 7f2d162 into angular:main Dec 19, 2023
34 checks passed
@clydin clydin deleted the esbuild/reduce-promises-transfer-size branch December 19, 2023 15:45
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants