You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2015/12/10 10:08:10 UTC
[jira] [Created] (CAMEL-9408) Camel ApiName Enumeration : object
creation optimization
Luca Burgazzoli created CAMEL-9408:
--------------------------------------
Summary: 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
Priority: Minor
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)