Skip to content

refactor(@angular-devkit/build-angular): use fast-glob for file searching support#25297

Merged
clydin merged 1 commit intoangular:mainfrom
clydin:fast-glob
May 31, 2023
Merged

refactor(@angular-devkit/build-angular): use fast-glob for file searching support#25297
clydin merged 1 commit intoangular:mainfrom
clydin:fast-glob

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented May 31, 2023

The file searching within the build system (both Webpack and esbuild) now use the fast-glob package for globbing which provides a small performance improvement. Since the assets option in particular is within the critical path of the buil pipeline, the performance benefit from the switch will be most prevalent in asset heavy projects. As an example, the Angular Material documentation site saw the asset discovery time reduced by over half with the switch. fast-glob is also the package used by Vite which provides additional benefit by ensuring that the Angular CLI behavior matches that of the newly integrated Vite development server.

@clydin clydin added the target: minor This PR is targeted for the next minor release label May 31, 2023
…hing support

The file searching within the build system (both Webpack and esbuild) now use the
`fast-glob` package for globbing which provides a small performance improvement.
Since the assets option in particular is within the critical path of the buil pipeline,
the performance benefit from the switch will be most prevalent in asset heavy projects.
As an example, the Angular Material documentation site saw the asset discovery time
reduced by over half with the switch. `fast-glob` is also the package used by Vite
which provides additional benefit by ensuring that the Angular CLI behavior matches
that of the newly integrated Vite development server.
@clydin clydin marked this pull request as ready for review May 31, 2023 17:54
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label May 31, 2023
@clydin clydin requested a review from alan-agius4 May 31, 2023 17:54
Copy link
Copy Markdown
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

Nice 🚀

@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 May 31, 2023
@clydin clydin merged commit ee5763d into angular:main May 31, 2023
@clydin clydin deleted the fast-glob branch May 31, 2023 19:05
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Jul 1, 2023
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.

2 participants