camel-dev 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-3255) Add property to DefaultCamelContext to allow for lazy loading of the DefaultTypeConverter
Date Wed, 20 Oct 2010 06:00:41 GMT

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

Claus Ibsen commented on CAMEL-3255:
------------------------------------

Hmm I still don't think its good to have synchronized blocks in the default case.
type converters is a bottleneck and hence there should be no contention issues at runtime.

Instead we should provide 2 kinds of type converters. The default, and the Lazy version. Then
the lazy can use synchronized blocks in the code.

> Add property to DefaultCamelContext to allow for lazy loading of the DefaultTypeConverter
> -----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3255
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3255
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.2.0, 2.3.0, 2.4.0
>            Reporter: Mark Ford
>            Assignee: Claus Ibsen
>            Priority: Minor
>         Attachments: patch.txt
>
>
> The loading of type converters was changed from a lazy loading to an up front loading
in a Camel 2.2. See issue CAMEL-2392 for details. Accordingly to the logging, it takes approximately
300 millis for this process to complete. 
> The proposal is to allow the configuration of this loading strategy for cases where the
initialization time of contexts is more important than the loading of type converters. The
"lazyLoadTypeConverters" property on the context will default to false to preserve the current
up front loading behavior as the default. If this value is set to true, then the loading of
the type converters will happen when accessed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message