I've mostly used log4jdbc in debug/test environments, only turning it
on in production environments for brief periods of time in order to
debug specific problems.
That is why the driver doesn't even wrap the connection at all if all
the logs are turned off (which is why the performance numbers came out
the same when you switched all the loggers off
--see DriverSpy:639 on current trunk)
This allows log4jdbc to be implanted in a production environment with
negligible performance impact and then switched on and off as needed.
Nevertheless, I am all for any simple performance enhancements that
can be made such as the one you suggested.
Also, I realize that one very valuable use of the tool is as an
auditing system of all the SQL or just to report exceptions-- in which
case it would be turned on all the time in production environments, so
I would like to improve the performance as much as possible.
The one issue you identified is quite easy to fix and I will incorporate that.
I am a little surprised at the numbers you came up with as I didn't
think the performance was nearly that bad.
If you have time to identify any more hot spots feel free to let me know.
At some point I should do some real profiling on it...
Thanks for your analysis.
> --
>
> You received this message because you are subscribed to the Google Groups "log4jdbc" group.
> To post to this group, send email to
log4...@googlegroups.com.
> To unsubscribe from this group, send email to
log4jdbc+u...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/log4jdbc?hl=en.
>
>
>