Subject | RE: [Firebird-Java] Possible memory leak in EncodingFactory ? |
---|---|
Author | Rick Debay |
Post date | 2006-06-20T16:06:21Z |
Can you send me a diff? I'm curious how removing the working buffer
slowed it down that much, primitive memory allocation isn't that bad in
Java. Also it should have removed the need for one buffer. What JVM
were you using?
-----Original Message-----
From: Firebird-Java@yahoogroups.com
[mailto:Firebird-Java@yahoogroups.com] On Behalf Of Roman Rokytskyy
Sent: Tuesday, June 20, 2006 2:39 AM
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Possible memory leak in EncodingFactory ?
I have added your code and tested it with AS3AP single user tests. It
shows slight degradation of the performance (before it took ~34 sec. for
the test, now it is ~38 sec).
However, since there is possible advantage to the people that prefer
smaller memory footprint compared to slightly better performance, I have
added a system property "jaybird.encoding.cache" (not connection
property, but the one that can be passed using
-Djaybird.encoding.cache=true to JVM at startup).
This week I will publish Release Candidate version of Jaybird 2.1, so
interested parties can check the solution.
Roman
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
slowed it down that much, primitive memory allocation isn't that bad in
Java. Also it should have removed the need for one buffer. What JVM
were you using?
-----Original Message-----
From: Firebird-Java@yahoogroups.com
[mailto:Firebird-Java@yahoogroups.com] On Behalf Of Roman Rokytskyy
Sent: Tuesday, June 20, 2006 2:39 AM
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Possible memory leak in EncodingFactory ?
> I will apply these changes to the CVS and test it with our AS3APSorry for a late reply - was bit busy at work.
> benchmark.
I have added your code and tested it with AS3AP single user tests. It
shows slight degradation of the performance (before it took ~34 sec. for
the test, now it is ~38 sec).
However, since there is possible advantage to the people that prefer
smaller memory footprint compared to slightly better performance, I have
added a system property "jaybird.encoding.cache" (not connection
property, but the one that can be passed using
-Djaybird.encoding.cache=true to JVM at startup).
This week I will publish Release Candidate version of Jaybird 2.1, so
interested parties can check the solution.
Roman
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links