You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2023/05/03 07:29:20 UTC

[GitHub] [camel] davsclaus commented on pull request #9982: CAMEL-19058: added a new wrapper for the enum array pattern used throughout the code base

davsclaus commented on PR #9982:
URL: https://github.com/apache/camel/pull/9982#issuecomment-1532572594

   -1  for enum map
   
   A fixed Object[] array are much smaller - and the original optimization was for avoding Map and other types that are large, and take up extra memory per message/exchange.
   
   And the lookup by ordinal value is a lot faster than a Map lookup by a hashed key. 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org