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] [Resolved] (CAMEL-9408) Camel ApiName Enumeration : object creation optimization
Date Thu, 10 Dec 2015 09:36:11 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-9408.
--------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.17.0

Thanks for the PR

> Camel ApiName Enumeration : object creation optimization
> --------------------------------------------------------
>
>                 Key: CAMEL-9408
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9408
>             Project: Camel
>          Issue Type: Improvement
>          Components: tooling
>            Reporter: Luca Burgazzoli
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.17.0
>
>
> The code generated by camel-api-component-maven-plugin for ApiName can potentially generate
excessive garbage if fromValue is invoked often, this is because:
> - enum::values() is not cached so it generates a new array for each call
> - new for style generates an iterator each time 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message