[
https://issues.apache.org/jira/browse/CAMEL-13870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16914998#comment-16914998
]
Claus Ibsen edited comment on CAMEL-13870 at 8/24/19 5:02 PM:
--------------------------------------------------------------
Luca has some good ideas
so about the fast properties set I have two suggesttions you may evaluate:
- add a @SuppressWarning("unchecked") as you may end up mapping maps or other
generics related things *DONE*
- evaluate to replace the map lookup with a switch case as Java should
translate the switch on string to a switch using the related hashcode at
compile time so it could become O(1) without the cost of calculating the hash
code ad runtime and without having to allocate a map
was (Author: davsclaus):
Luca has some good ideas
so about the fast properties set I have two suggesttions you may evaluate:
- add a @SuppressWarning("unchecked") as you may end up mapping maps or other
generics related things
- evaluate to replace the map lookup with a switch case as Java should
translate the switch on string to a switch using the related hashcode at
compile time so it could become O(1) without the cost of calculating the hash
code ad runtime and without having to allocate a map
> camel3 - Fast configuring of endpoint options
> ---------------------------------------------
>
> Key: CAMEL-13870
> URL: https://issues.apache.org/jira/browse/CAMEL-13870
> Project: Camel
> Issue Type: Improvement
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.0.0, 3.0.0.RC1
>
>
> Like we did for fast property placeholders on EIPs we can optimize endpoints
> as well, by using the apt compiler plugin to generate a configurer classes
> that uses direct java method invocations and then the property builder
> support class can detect that we have such a configurer and use it, when it
> looks for the setter.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)