03-12-06 10: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.o
rg 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
[ Post a follow-up to this message ]
|