I found out about the performance issues with appendTo…List when I was working on a complicated map between 2 Invoice formats. While using appendTo…List, the performance of the mappings were always unacceptable when dealing with large invoices.
I then found out that the “lists” are implemented as IData in java. The only way to expand the IData would be to create an "new IData
[list.length + 1]
" and then copy all the elements.
This enabled me to reduce the time of mapping very large invoices (several thousand lines), from 30-60 minutes, down to 1-3 minutes. I don’t remember the exact times, but the difference was very significant.
Since then I’ve always been careful about using appendTo…List, and I only use it if I’m dealing with small lists.
#Integration-Server-and-ESB#webMethods#webMethods-General