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

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

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

   > -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 key.
   
   Internally an `EnumMap` uses an array, in fact it does more or less the same as this custom class


-- 
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