camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject [HEADS UP] - Small optimisation in DefaultExchange
Date Fri, 26 May 2017 07:57:46 GMT

I have just pushed a commit that optimises DefaultExchange to use a
plain HashMap for storing exchange properties instead of ConcurrentMap

The latter was introduced 8 years ago to fix/workaround an issue with
the Threads EIP which we don't have today

The plain HashMap should have smaller footprint and less object
allocation overhead. And the best place to optimise Camel is around
exchange/message/type converters/routing engine as they are used
during routing messages.

A full test has been done and it passed, but I just wanted this
heads-up in case a side-effect or something is around.

Claus Ibsen
----------------- @davsclaus
Camel in Action 2:

View raw message