I would agree, especially under heavy load, when you use an additional threadpool in the filterchain.

Regards
Michael


Trustin Lee schrieb:
On 7/10/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
On 7/10/07, Michael Bauroth <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there a special reason why DemuxingIoHandler still uses Hashtable
> instead of e.g. ConcurrentHashMap (version 2.0.0)?

We don't need to switch all Map implementations from synchronized
HashMap to ConcurrentHashMap because ConcurrentHashMap doesn't perform
better than synchronized HashMap when small number of threads are
accessing it at the same time.  Moreover, it takes up more heap.

My message was somewhat in too principle. :)
I guess DemuxingIoHandler might take advantage of ConcurrentHashMap
because the type-handler map is accessed by multiple sessions.  WDYT?

Thanks,
Trustin


Reply via email to