문제

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.

도움이 되었습니까?

해결책

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/

다른 팁

There is an answer to you, it tell about parallel too : Turning async socket Parallel and not only Concurrent in very intensive application using TPL

Thanks

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top