17 May
2010
17 May
'10
4:49 p.m.
But before you begin doing this, it's worth ensuring that you *really* have a bottleneck there (which is unlikely in a network-oriented application).
BTW, you also can try to use a trivial custom allocator that would eliminate some heap allocations in completion handlers (unrelated to shared_ptr): http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/example/allocation/...