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-11379) Optimise - core type converters to be invoked faster
Date Sat, 24 Jun 2017 08:45:00 GMT

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

Claus Ibsen commented on CAMEL-11379:
-------------------------------------

Before
{code}
Benchmark                                                                          Mode  Cnt
      Score      Error   Units
TypeConverterTest.typeConvertIntegerToString                                      thrpt  
 2      ≈ 10⁻⁴             ops/us
TypeConverterTest.typeConvertIntegerToString                                       avgt  
 2   54982.964              us/op
TypeConverterTest.typeConvertIntegerToString                                     sample  
74   55641.835 ± 4139.377   us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.00    sample 
      50987.008              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.50    sample 
      53084.160              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.90    sample 
      58523.648              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.95    sample 
      76709.888              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.99    sample 
     110231.552              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.999   sample 
     110231.552              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.9999  sample 
     110231.552              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p1.00    sample 
     110231.552              us/op
TypeConverterTest.typeConvertIntegerToString                                         ss  
 2   98028.971              us/op
{code}

After
{code}
Benchmark                                                                          Mode  Cnt
     Score      Error   Units
TypeConverterTest.typeConvertIntegerToString                                      thrpt  
 2     ≈ 10⁻⁴             ops/us
TypeConverterTest.typeConvertIntegerToString                                       avgt  
 2  44793.295              us/op
TypeConverterTest.typeConvertIntegerToString                                     sample  
96  43011.413 ± 2670.143   us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.00    sample 
     39649.280              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.50    sample 
     40894.464              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.90    sample 
     43450.368              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.95    sample 
     64883.917              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.99    sample 
     82706.432              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.999   sample 
     82706.432              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p0.9999  sample 
     82706.432              us/op
TypeConverterTest.typeConvertIntegerToString:typeConvertIntegerToString·p1.00    sample 
     82706.432              us/op
TypeConverterTest.typeConvertIntegerToString                                         ss  
 2  80020.713              us/op
{code}

> Optimise - core type converters to be invoked faster 
> -----------------------------------------------------
>
>                 Key: CAMEL-11379
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11379
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.20.0
>
>
> Instead of adding the core type converters in a bit of dynamic way, we can hardcode how
they are registered and invoked which will by pass some of the overhead that dynamic discovered
type converters have.
> The benefit is that these core type converters are used a lot more and therefore we can
gain some memory footprint and performance by doing so.



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

Mime
View raw message