camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5675) Camel Route Startup Performance Slow
Date Fri, 05 Oct 2012 05:58:48 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470038#comment-13470038
] 

Claus Ibsen commented on CAMEL-5675:
------------------------------------

If you run Camel 2.9+ then in the unit tests you can tell Camel that you use advice with,
as said in the green box at
http://camel.apache.org/advicewith.html

That should avoid the restart of routes.
                
> Camel Route Startup Performance Slow
> ------------------------------------
>
>                 Key: CAMEL-5675
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5675
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.8.6
>         Environment: JDK 1.6
>            Reporter: Les Novell
>            Assignee: Claus Ibsen
>              Labels: performance
>             Fix For: 2.11.0
>
>         Attachments: after.png, before.png, CAMEL-5675.patch
>
>
> I am writing unit tests for Camel and found that each unit test was taking up to a second
just to create the Camel routes. That's not very long, but we have a large unit test suite
that needs to run quickly.
> I did a performance profile and found that most of the time is going to the method org.apache.camel.util.IntrospectionSupport.getProperties(Object,
Map, String). That method, then also calls IntrospectionSupport.isSetter(Method), and just
running two unit tests I saw isSettter called 2.5 million times!
> It seems to me that a cache per class of the properties would make a huge performance
improvement on Camel route building. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message