-
Notifications
You must be signed in to change notification settings - Fork 795
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
Server GC mode for fsc.exe #404
Comments
Well, that looks great :) |
@vzarytovskii @KevinRansom I'm reopening as I'd like to revalidate whether using gcServer is a perf win or not. On bootstrapping the compiler it gives a noticeable slowdown. |
I was quite surprised to find out that we use server GC for fsc.exe on .NET Framework which has an fsc.exe.config with GC Server enabled as well as a few other settings. You can see this applies in the product here:
This surprised me. My experiments on compiling-the-compiler show a 30% slowdown with this setting. I think this should never have been re-enabled, despite what's reported above. Either way we need to revalidate this setting. When we build our .NET 6/7 compiler in |
Closing in favour of #13739 |
I did some testing today, trying out server GC mode on fsc.exe. Results look promising:
FWIW the Roslyn command-line compilers use server GC.
Potential downsides:
Note also that we already have
GCLatencyMode.Batch
enabled now in fsc, which gave us a nice perf boost.I'll send a PR next week adding this, unless anyone objects.
The text was updated successfully, but these errors were encountered: