Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有对象boost::io_service的方法对事件进行异步处理。有谁知道这是否会导致新的分配?我知道下面有一个事件队列,但我知道它是如何完全工作的。显然我很关心高性能。post()boost::bind
boost::io_service
post()
boost::bind
是的,它会导致分配。如果分配是性能问题,您可以为 handler 使用自定义分配器。