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

Task cache pre-heat #11207

Open
SimaTian opened this issue Jan 2, 2025 · 1 comment
Open

Task cache pre-heat #11207

SimaTian opened this issue Jan 2, 2025 · 1 comment

Comments

@SimaTian
Copy link
Member

SimaTian commented Jan 2, 2025

Most of tasks MSBuild uses are not intrinsic - e.g. they need to be located and loaded into the assembly. This loading has a visible runtime impact:
Image
This is happening first time any task is loaded to be executed - afterward it is cached.

We could pre-heat the cache as soon as we first encounter the task name (e.g. during XML parsing). This could allow for a neat parallelization use case that should be contained enough so as not to cause issues elsewhere.

@KalleOlaviNiemitalo
Copy link

I suppose pre-heating of task types should be disabled if the -getProperty or -getItem option is used and no targets are going to be executed.

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

No branches or pull requests

2 participants