文件系统中的命名管道不是很慢吗?

Aren't Named Pipes in the Filesystem slow?

将IPC的流数据写入文件系统中的文件等等写入您的(HDD o.SSD)不是没有用吗?我的意思是,在内存中创建一个 "buffered" 管道不是更好吗,以便我们在驱动器上有更多的性能?但是我是 IPC 的新手……或者它不是在写入磁盘吗?但是系统写入文件系统而不写入磁盘怎么可能呢?

Aren't Named Pipes in the Filesystem slow?

它们并不比任何其他类型的管道慢。

isn't it better to create a "buffered" pipe in the memory

如果您没有内存限制,那么是的(请参阅下面的旧 OS link)。

[...] or isn't it writing onto the disk?

您的猜测是正确的 - 在许多现代操作系统中,进入命名管道的数据并未写入磁盘;文件系统只是一个命名空间,它包含一些东西,告诉你在哪里可以找到管道的末端。来自 Linux man page for pipe:

Note: although FIFOs have a pathname in the filesystem, I/O on FIFOs does not involve operations on the underlying device (if there is one).

older operating systems that buffer pipe data within a filesystem 但是考虑到你的问题的措辞(在这样的系统上所有管道都通过文件系统而不仅仅是命名的管道)我怀疑这是一个切线。