【发布时间】:2011-09-06 21:58:32
【问题描述】:
我需要一个超快的 MQ 机制,发送方和接收方都用 C++ 编写,在 Windows 平台上。
我目前使用RCF-C++ 进行 IPC 的实现在 Windows 命名管道上的时钟速度约为 20,000 msg/sec。
我正在根据the demo app 测试 boost::interprocess Message Queues 的性能,并且测量到大约 48,000 条消息/秒,考虑到当我在同一设备上制作一个简单的内存映射文件通信时,这非常慢机器(在 C# 中使用 code from this blog post),我每秒收到大约 150,000 条消息。
知道为什么我从 boost message_queue 中得到如此缓慢的性能,以及我可以尝试改进它吗?
【问题讨论】:
标签: c++ performance ipc memory-mapped-files boost-interprocess