2009/7/9 Claus Ibsen <claus.ib...@gmail.com>: > Hi > > See this wiki page for ideas on performance optimizations > http://camel.apache.org/camel-2x-speed-optimizations.html
Copying Messages seems to be the big cost (particularly all those headers etc). I wonder if we should use in the Pipeline a ReadOnlyMessageFacade which prevents mutation of the underlying message, so the same Message can be reused (no need to make defensive copies first) and can be passed into next steps in the chain if an OUT message is not created? I'm also wondering how often we really use Exchange properties; seems we mostly use message headers; in which case creating new Exchange instances should be quite cheap - as we can just pass the IN by value each time? -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/