EMA C++ Performace Tools Guide : 10 Performance Best Practices : 10.3 Encoder and Decoder Best Practices
 
10.3 Encoder and Decoder Best Practices
10.3.1 Single-Pass Encoding
Enterprise Message API encodes data so as to minimize copying. Thus, the application encoding process begins by starting with the top-level container and working down in a linear fashion.
For example, when encoding a Market Price message, the message header is encoded, followed by the field list payload. After the payload is encoded, message encoding is completed.