I have a WCF service, which works with sockets async, I have some performance issue so I decided to refactor the code, I read some articles about the ease of use of F# for async and multi threading and so on, but i want to know I'll gain a better performance to use F# parallelism? and its easy compatible with WCF service, I have a large amount of data which should be transfer via the sockets (on tcp) so its important to have a good performance and parallelism algorithm.
+2
A:
Briefly:
F# has a similar performance profile to C#. You shouldn't expect F# and C# to have much perf difference for similarly structured code.
F# has a much better programming model for async code compared to C#. If you are doing a lot of BeginFoo/EndFoo callback stuff in C#, then you will find it much easier to write this code in F# (and easier to "get it right").
http://lorgonblog.wordpress.com/2010/03/28/f-async-on-the-server-side/
Brian
2010-10-24 07:08:05