EMA C++ Performace Tools Guide : 10 Performance Best Practices : 10.2 Enterprise Message API Best Practices : 10.2.6 Enterprise Message API Buffering
 
10.2.6 Enterprise Message API Buffering
The Enterprise Message API uses various optimization techniques for efficient input and output of content, many revolving around pre-allocated buffers which minimize memory creation and destruction. Pre-allocated buffers queue outbound data as well as read large byte-streams from underlying transports.
When a connection is established, the maximum size buffer is negotiated, allowing the Enterprise Message API to create input and output buffers that work well with respect to that connection. Because input and output strategies have different challenges, these pre-allocated buffer pools are handled differently depending on whether they are input or output buffers.