fsprojects / FSharp.TypeProviders.SDK

The SDK for creating F# type providers
https://fsprojects.github.io/FSharp.TypeProviders.SDK/
MIT License
298 stars 94 forks source link

TypeProvider infrastructure can result in massive LOH allocations causing large UI delays/slowness inside VS #281

Closed davkean closed 5 years ago

davkean commented 5 years ago

In the trace of https://developercommunity.visualstudio.com/content/problem/379653/vs-slow-typing-and-hang-1.html, we found that in infrastructure is allocating 1.5 GB of data on the LOH heap, causing large UI delays while VS does a Gen2 collection.

image

davkean commented 5 years ago

Closing this in lieu of https://github.com/Microsoft/visualfsharp/issues/5929, https://github.com/Microsoft/visualfsharp/issues/5931 and https://github.com/Microsoft/visualfsharp/issues/5930. We can those bugs back here if needed.