I am also having this issue with Camel Splitter. I am using Splitter to split
a List<LinkedHashMap&lt;String,Object>> and direct to another route which
would write to file. I found that splitter is taking 7-8 seconds to split
each item in the List.
<route>
        <from uri="timer://kickoff?repeatCount=1" />
        <setBody>
                <simple>select * from emp</simple>
        </setBody>
                <to uri="jdbc:testdb" />
                <split streaming="true"> 
                        <method ref="XMLTransformer" method="splitBody" />
                        <bean ref="XMLTransformer" method="receive" />
                </split>                                                
</route>

The method split body returns LinkedHashMap<String,Object>. When I manually
split the messages by iterating through the list. It is much faster. Why
splitter is very slow while iterating collection? Are there any work around
available for this issue? Please help.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Performance-puzzle-Slow-splitter-on-object-array-tp5729867p5769761.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to