Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 20E87200CCA for ; Tue, 4 Jul 2017 14:28:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1FB3C1610BD; Tue, 4 Jul 2017 12:28:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6EC151610C1 for ; Tue, 4 Jul 2017 14:28:09 +0200 (CEST) Received: (qmail 99975 invoked by uid 500); 4 Jul 2017 12:28:08 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 99966 invoked by uid 99); 4 Jul 2017 12:28:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2017 12:28:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3C239C0E36 for ; Tue, 4 Jul 2017 12:28:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id sgqFz1CHs9KV for ; Tue, 4 Jul 2017 12:28:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3746A5F6D3 for ; Tue, 4 Jul 2017 12:28:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 52FB3E0D95 for ; Tue, 4 Jul 2017 12:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 39FC124612 for ; Tue, 4 Jul 2017 12:28:00 +0000 (UTC) Date: Tue, 4 Jul 2017 12:28:00 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-11321) Can CamelContext startup faster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 04 Jul 2017 12:28:10 -0000 [ https://issues.apache.org/jira/browse/CAMEL-11321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16073577#comment-16073577 ] Claus Ibsen commented on CAMEL-11321: ------------------------------------- As Caffeine cache takes 150-200 millis to startup etc we can try to have some LRUCacheFactory which initializes this in the background while Camel startup. We can look at where we use LRUCache and limit this to only when really needed so there are maybe some parts during startup that dont need that and can just use a regular bounded Map or something. > Can CamelContext startup faster > ------------------------------- > > Key: CAMEL-11321 > URL: https://issues.apache.org/jira/browse/CAMEL-11321 > Project: Camel > Issue Type: Improvement > Components: camel-core, camel-spring-boot > Reporter: Claus Ibsen > Fix For: Future > > > [~lb] have some thoughts on if we can make CamelContext startup faster, especially when using Spring Boot. Spring Boot itself is not so fast, but should be faster in 2.x. > For example we could consider camel-core to not do any classpath scanning for components that are provided OOTB in camel-core, eg if using "log" endpoint, then only check the spring registry if any custom bean of that, and if not, then we know "log" is from camel-core and then we know its class name already and dont need to scan the classpath. > We could take that one step further for the entire Camel release and have a plugin that generate/keep java source file up to date from camel-core, which has complete mapping of all component-name=component-class. > We can also do some profiling and see if there is some hot-spots. There is also the revised work that Zoran does in starting Camel on spring / spring-boot. -- This message was sent by Atlassian JIRA (v6.4.14#64029)