-
Notifications
You must be signed in to change notification settings - Fork 289
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
Performance issue causing VS freezes and Out of memory
crashes
#1249
Comments
@blumu Could you check again with FSHarp.Data 3.0.1? Thanks |
@dsyme Thanks a lot for quickly releasing this fix! I will try it in a moment.
|
@dsyme @TIHan The fix worked, awesome :-) |
This is great to hear @blumu , this fully confirms this was your issue. It seems the fix is intermediate as we need to find a proper solution. @dsyme we should discuss what the next path forward should be. I do agree with @davkean that we should properly tie this in the lifecycle of something, preferably Roslyn's metadata bits. |
NOTE: This reproes on a private solution so I cannot share unfortunately.
We encounter perf issues with our VS solution (hangs, and freezes). The F# team looked into perfview traces that we shared with them and have identified a performance issue in the

FSharp.Data
type provider causing the large object heap to be filled up, and eventually triggering long gen2 GC pauses (>30s).The following perfview stack trace shows 6GB of memory related to assemblies being loaded for the type providers in FSharp.Data.
There is about 1GB for each type provider exposed by FSharp.Data, even though our solution only makes use of two of them (JSON, and XML).
(Visual Studio 2019 Preview 4.2 [28712.124.d16.0])
The proper fix might involve fixes to the TypeProvider SDK (ProvidedType.fs). (Will Smith submitted a PR to address this at fsprojects/FSharp.TypeProviders.SDK#283 but the proposed solution has drawbacks and was therefore not approved.)
The text was updated successfully, but these errors were encountered: