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 2ACE9200CB7 for ; Fri, 30 Jun 2017 10:48:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 29E76160BEB; Fri, 30 Jun 2017 08:48: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 7909D160BDD for ; Fri, 30 Jun 2017 10:48:09 +0200 (CEST) Received: (qmail 34604 invoked by uid 500); 30 Jun 2017 08:48:04 -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 34595 invoked by uid 99); 30 Jun 2017 08:48:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2017 08:48:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7B89F188A36 for ; Fri, 30 Jun 2017 08:48:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZpAHoSDry42R for ; Fri, 30 Jun 2017 08:48:02 +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 DE7495F570 for ; Fri, 30 Jun 2017 08:48:01 +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 E5343E08F4 for ; Fri, 30 Jun 2017 08:48:00 +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 35E6E245B9 for ; Fri, 30 Jun 2017 08:48:00 +0000 (UTC) Date: Fri, 30 Jun 2017 08:48:00 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-11484) Optimise - Simple Language / ExpressionBuilder can use cache of frequent used expressions when having nested functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Jun 2017 08:48:10 -0000 [ https://issues.apache.org/jira/browse/CAMEL-11484?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D160= 69716#comment-16069716 ]=20 Claus Ibsen commented on CAMEL-11484: ------------------------------------- Optimised a bit more {code} Benchmark Mode = Cnt Score Error Units SimpleExpressionTest.simpleExpression thrpt = 2 0.013 ops/us SimpleExpressionTest.simpleExpression avgt = 2 149.774 us/op SimpleExpressionTest.simpleExpression sample 264= 124 151.212 =C2=B1 0.262 us/op SimpleExpressionTest.simpleExpression:simpleExpression=C2=B7p0.00 sample= 78.976 us/op SimpleExpressionTest.simpleExpression:simpleExpression=C2=B7p0.50 sample= 148.480 us/op SimpleExpressionTest.simpleExpression:simpleExpression=C2=B7p0.90 sample= 180.224 us/op SimpleExpressionTest.simpleExpression:simpleExpression=C2=B7p0.95 sample= 189.952 us/op SimpleExpressionTest.simpleExpression:simpleExpression=C2=B7p0.99 sample= 217.600 us/op SimpleExpressionTest.simpleExpression:simpleExpression=C2=B7p0.999 sample= 1058.560 us/op SimpleExpressionTest.simpleExpression:simpleExpression=C2=B7p0.9999 sample= 1254.938 us/op SimpleExpressionTest.simpleExpression:simpleExpression=C2=B7p1.00 sample= 3067.904 us/op SimpleExpressionTest.simpleExpression ss = 2 7174.142 us/op {code} > Optimise - Simple Language / ExpressionBuilder can use cache of frequent = used expressions when having nested functions > -------------------------------------------------------------------------= --------------------------------------------- > > Key: CAMEL-11484 > URL: https://issues.apache.org/jira/browse/CAMEL-11484 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.20.0 > > > If you use a simple expression in a Camel route that has a simple token, = then it's re-created per exchange during routing. The expression by itself = can be cached and reused, which avoids using the simple parser over and ove= r again. -- This message was sent by Atlassian JIRA (v6.4.14#64029)