Hi,
Hibernate 2.1.8 spends a very large portion of CPU time in calls to the log.info(), log.debug(), and log.trace() methods even though these logging levels are turned off. It is because Hibernate makes a lot of calls to these methods and in many cases without checking if the corresponding log is enabled, e.g., by calling log.isDebugEnabled(), log.isTraceEnabled(), log.isInfoEnabled(), and sqlLog.isDebugEnabled().
When the logging is conditional the performance is significantly improved.
Would it be possible to make these changes in version 2.1.8 and release a new build of 2.1?
I noticed that version 3.0.3 has a similar problem.
Thanks,
Marek
|