Mono and C# IOCP: Is it a good idea?

2019-04-10 22:32发布

问题:

I'm porting a c++ app to c# that uses IOCP on it's server.

Can mono handle IOCP as well as windows? will i get comparable performance to c++ or i should try something else?

thanks

回答1:

The main overhead in IOCP is the IO not the language. You should expect the same performance from the C# code as in C++ (Given the mature state that Mono is in).



回答2:

Do you target mono for windows? If it is linux then there is a different async i/o model, not completion ports. I assume mono developers did their best to support it.



标签: c# mono iocp