Subject RE: [Firebird-Java] Possible memory leak in EncodingFactory ?
Author Rick Debay
If you keep the caching, you must use SynchronizedHashMap or
ConcurrentHashMap. The cache as it stands is not thread safe.
Multithreaded tests need to be run to find out if performance degrades
due to contention.

-----Original Message-----
[] On Behalf Of Roman Rokytskyy
Sent: Wednesday, June 21, 2006 1:39 AM
Subject: Re: [Firebird-Java] Possible memory leak in EncodingFactory ?

> So I reason the slow-down must be in the pooling. It would get even
> slower when changed to a SynchronizedHashMap or ConcurrentHashMap.
> Let's test with just the memory reduction for now and see what those
> numbers generate.

The number are comparable. I guess we stop here. The implementation of
Encoding interface will be "cached" for the lifetime of the XSQLVAR
object, won't have allocated memory except the one for the object


------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.

Yahoo! Groups Links