Performance of sockets vs pipes

后端 未结 3 390
醉话见心
醉话见心 2021-01-12 21:08

I have a Java-program which communicates with a C++ program using a socket on localhost. Can I expect to gain any performance (either latency, bandwidth, or both) by moving

3条回答
  •  不要未来只要你来
    2021-01-12 21:16

    Ken is right. Named pipes are definitely faster on Windows. On UNIX & Linux, you'd want a UDS or local pipe. Same thing, different name.

    Anything other than sockets will be faster for local communication. This includes memory mapped files, local pipes, shared memory, COM, etc.

提交回复
热议问题