Quote:
Originally Posted by CptSky
It is impossible. It would require a compiler that compile native code from the C# source and not CIL code. Also, it would require a memory management prediction and/or a delete call to control the memory. But the solution I said is good in the point that all the socket I/O will be performed on native code and only the buffer would/could be passed to the managed program.
Meh! I don't know why, but when I used your socket, the ping was really high...
|
That's true. I suppose any improvements are good, especially in the way of bringing it to a lower level language.
Also, as far as your ping goes, did you try running any tests to see how many milliseconds it takes your system to send/receive/process with your system as compared to his? It could be minor differences, or even differences in the PSI set your system is running the server under. i.e. maybe his is sse3+ and yours ran in sse/mmx?