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-unsubscr...@camel.apache.org

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

Reply via email to