Apache Directory Project - Re: svn commit: r385254 - in /directory/trunks/mina/core/src/main/java/org/apache/mina

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > March 2006 > Re: svn commit: r385254 - in /directory/trunks/mina/core/src/main/java/org/apache/mina





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: svn commit: r385254 - in /directory/trunks/mina/core/src/main/java/org/apache/mina
Trustin Lee

2006-03-12, 5:45 pm

On 3/13/06, peter royal <proyal-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org> wrote:
>
> On Mar 12, 2006, at 1:08 AM, trustin-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org wrote:
>
> Performance will suck if shared instances are returned due to
> synchronization on the returned instances in the
> ProtocolCodecFilter... Unless the synchronization is removed, it
> would be unadvisable to return shared instances.



It depends on the implementation of codec. Some codec might be stateless so
they don't need any synchronization. Of course, a codec factory usually
returns a new instance. It's a user's choice.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com