Make it possible to write idiomatic F# code whose performance rivals/exceeds C#
I think there must still be room for improvement in the way the IL from F# is optimized. I'd value that far above the addition of any specific feature. I'd like to stop seeing my lovely idiomatic code get more and more imperative-looking as I work on performance.
4 comments
-
Rickasaurus
commented
I have heard that the F# team decided to give up some of the more complex optimizations in the name of C# compatibility. Perhaps these could come back as something you could enable with attributes. Most often there's a very strict OO layer between my F# and any C# I'm working with anyhow.
-
Kit Eason
commented
May be better solved by addressing this suggestion for GC: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2318316-add-more-garbage-collector-options-including-a-low
-
Kit Eason
commented
@Jon - completely impossible? For clarity: I'm not expecting fully idiomatic F# code to equal performance of cleverly written C# code. I'd just like to move some distance along the way of being able to produce performant code which still looks like 'proper' F#. It's kind of hard to persuade business to adopt otherwise.
-
Jon Harrop
commented
This is an impossible task.