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-11484) Optimise - Simple Language / ExpressionBuilder can use cache of frequent used expressions when having nested functions
Date Fri, 30 Jun 2017 08:48:00 GMT

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

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  264124   151.212 ±
0.262   us/op
SimpleExpressionTest.simpleExpression:simpleExpression·p0.00    sample            78.976
          us/op
SimpleExpressionTest.simpleExpression:simpleExpression·p0.50    sample           148.480
          us/op
SimpleExpressionTest.simpleExpression:simpleExpression·p0.90    sample           180.224
          us/op
SimpleExpressionTest.simpleExpression:simpleExpression·p0.95    sample           189.952
          us/op
SimpleExpressionTest.simpleExpression:simpleExpression·p0.99    sample           217.600
          us/op
SimpleExpressionTest.simpleExpression:simpleExpression·p0.999   sample          1058.560
          us/op
SimpleExpressionTest.simpleExpression:simpleExpression·p0.9999  sample          1254.938
          us/op
SimpleExpressionTest.simpleExpression:simpleExpression·p1.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 over again.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message