Skip to content

refactor(@angular/build): run initialization tasks concurrently in library builder - #34297

Open
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:refactor/library-builder-concurrent-init
Open

alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:refactor/library-builder-concurrent-init

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Moving target project name validation before async operations allows early exit if missing. Additionally, normalizing library options, initializing xxHash, and purging the stale build disk cache concurrently via Promise.all avoids serial awaiting during builder startup.

…brary builder

Moving target project name validation before async operations allows early exit if missing. Additionally, normalizing library options, initializing xxHash, and purging the stale build disk cache concurrently via Promise.all avoids serial awaiting during builder startup.
@alan-agius4
alan-agius4 requested a review from dgp1130 October 9, 2026 13:26
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Oct 9, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request optimizes the executeLibraryBuilder function by refactoring sequential asynchronous calls into a concurrent execution using Promise.all. Specifically, normalizeLibraryOptions, initializeHash, and purgeStaleBuildCache are now run in parallel to improve performance. No review comments were provided, and there is no feedback to address.

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

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/build target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant