Message tree navigation and message tree copying can reduce message flow performance, so it is important to use them appropriately and limit their usage where possible.
Long paths are inefficient, so ensure that you minimize their usage, particularly in loops. Using reference variables and pointers in ESQL and Java™ can improve performance. Where possible, build a smaller message tree by using compact parsers such as XMLNSC, DFDL, MRM XML, RFH2C, and use opaque parsing.
In addition to these techniques, the effect of copying the message tree is reduced if you also reduce the size of the message tree by using compact parsers and opaque parsing. For more information, see Parsing and message flow performance.