Windows - Named pipes performance recommendations with C#

非 Y 不嫁゛ 提交于 2019-12-11 12:22:26

问题


I am currently evaluating named pipes for IPC on Windows with .NET/C#.
I am currently looking at a single producer, single consumer scenario.
Are there any good performance consideration guidelines?
In my first test case I was comparing the speed of large messages vs small messages and seems to be that large (64k) messages are sent as quick as small (48 Bytes) packages. This was with the default parameters. I might add more test scenarios, but this is quite time-consuming and thus I am looking for guidelines.


回答1:


We used Named Pipes on Windows NT 4 and Windows 2000. Really fast.

When we switched to XP, occasionally it would be fast, the rest of the time slow. With exactly the same code.

We wrote our own shared memory data transport. Seriously fast.



来源:https://stackoverflow.com/questions/2447846/windows-named-pipes-performance-recommendations-with-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!