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

Add DesignTimeBuild=true to legacy build from ProjectSystem #4407

Merged
merged 2 commits into from
Mar 1, 2018

Conversation

KevinRansom
Copy link
Member

This replaces: PR #4395.

Fixes: #3222

The project system wasn't setting the DesignTimeBuild flag when running design time builds. This PR addresses that issue.

@KevinRansom
Copy link
Member Author

@forki this does not impact dotnet sdk projects.

Copy link
Contributor

@saul saul left a comment

Choose a reason for hiding this comment

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

Out of interest, does this improve solution load times? May be worth checking with that “Huge” benchmark solution Ive posted a few times.

@0x53A
Copy link
Contributor

0x53A commented Feb 28, 2018

@KevinRansom I think this is related to #1559.

In that issue, $(SolutionDir) is unset, I would guess that it would also need to be set here?

Copy link
Member

@Pilchie Pilchie left a comment

Choose a reason for hiding this comment

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

@davkean can you take a look at this too?

@KevinRansom
Copy link
Member Author

@0x53A I can take a look separately at the $(SolutionDir) issue. But it seems like that would not be something the project system is supposed to provide.

I imagine that this may speed up performance load for legacy projects. I will take a look once I get tests passing.

Kevin

@cartermp
Copy link
Contributor

@KevinRansom I believe the stress test that @saul mentioned is located here: https://github.com/Microsoft/visualfsharp/tree/master/tests/projects/stress

So it should be pretty easy to measure against baselines under notes.txt

@KevinRansom
Copy link
Member Author

@0x53A Looks like a 10-12 % reduction in time when loading huge dense solution.

from (51.40, 52.51, 51.97, 51.96) seconds to (45.51, 45.68, 45.10, 45.32) seconds.

Time to semantic colorization.

@KevinRansom
Copy link
Member Author

KevinRansom commented Feb 28, 2018

@0x53A

This should be in tomorrows nightly build drop. Since I am about to pull it. It won't make it into 15.6, but should first appear in a 15.7 preview when they come on stream.

Thanks for sticking at this, it yielded a nice improvement.

Kevin

@KevinRansom KevinRansom merged commit fa9fa49 into dotnet:master Mar 1, 2018
@dsyme
Copy link
Contributor

dsyme commented Mar 2, 2018

Can someone explain what setting the DesignTimeBuild flag does please, roughly speaking? Thanks!

@KevinRansom KevinRansom deleted the DesignTimeBuild branch March 9, 2018 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants