Skip to content

bump to 500#46060

Merged
jmarolf merged 1 commit intodotnet:masterfrom
jmarolf:bugfix/change-100-to-500
Jul 17, 2020
Merged

bump to 500#46060
jmarolf merged 1 commit intodotnet:masterfrom
jmarolf:bugfix/change-100-to-500

Conversation

@jmarolf
Copy link
Contributor

@jmarolf jmarolf commented Jul 16, 2020

fixes #46023
fixes #38357

This updates the number of assemblies cached by the compiler server from 100 to 500. This number was chosen based on telemetry reporting. See linked issues for details.

@jmarolf jmarolf requested a review from a team as a code owner July 16, 2020 21:26
@jmarolf jmarolf requested a review from jaredpar July 16, 2020 21:26
@AlekseyTs
Copy link
Contributor

@jmarolf Do you find this PR title descriptive enough?

@jmarolf
Copy link
Contributor Author

jmarolf commented Jul 16, 2020

@AlekseyTs I do :) gotta have some mystery in there to add human interest.

@cartermp
Copy link
Contributor

also fixes #38357

@RikkiGibson
Copy link
Member

RikkiGibson commented Jul 17, 2020

Is there a measurable build time difference as a result of this change? Or does it just tend to affect the performance of incremental builds over a period of time?

@jmarolf
Copy link
Contributor Author

jmarolf commented Jul 17, 2020

Is there a measurable build time difference as a result of this change?

@RikkiGibson Since we always build with the bootstrap compiler I compared this CI build time to masters

master this PR % improvement
17:26 15:39 11%

{
// Store 100 entries -- arbitrary number
private const int CacheSize = 100;
// Store 500 entries -- Out of ~8.7M projects, only about 4,000 had more than 500 references
Copy link
Member

Choose a reason for hiding this comment

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

This is really gonna kill my story telling abilities. Discussing how this number was chosen by a highly scientific process that in reality is just a number that made the least people scream was one of my favorites. Now I have to say it has some real logic behind it.

Copy link
Contributor

Choose a reason for hiding this comment

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

But it does involve suggesting that we make it over 9000, so there's that

@jmarolf jmarolf merged commit ee23aef into dotnet:master Jul 17, 2020
@ghost ghost added this to the Next milestone Jul 17, 2020
@JoeRobich JoeRobich modified the milestones: Next, 16.8.P1 Jul 20, 2020
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.

Compiler server should cache more DLL references Update our cached reference count in server

6 participants