You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code ends up reading all of FSharp.Core.dll and one of mscorlib.dll/system.runtime.dll/netstandard.dll into byte arrays upon type provider instantiation:
| Some m ->match m.Version with USome v -> Some v | UNone -> None
| None -> None
else
None
with_-> None )
|>function
| None -> typeof<int list>.Assembly.GetName().Version // failwith "no reference to FSharp.Core found"
| Some r -> r
This work is unnecessary because the F# compiler already knows this information. However, changing this would require work both in here and the compiler. Perhaps there's a cheaper way than allocating multiple MB on the LOH?
The text was updated successfully, but these errors were encountered:
From here: dotnet/fsharp#5930 (comment)
The following code ends up reading all of FSharp.Core.dll and one of mscorlib.dll/system.runtime.dll/netstandard.dll into byte arrays upon type provider instantiation:
FSharp.TypeProviders.SDK/src/ProvidedTypes.fs
Lines 8572 to 8608 in 6d90bfc
This work is unnecessary because the F# compiler already knows this information. However, changing this would require work both in here and the compiler. Perhaps there's a cheaper way than allocating multiple MB on the LOH?
The text was updated successfully, but these errors were encountered: