Hi, OK, thanks! It should be fixed now (in the trunk only so far).
Regards, Thomas On Friday, November 7, 2014, Sergey Evdokimov <[email protected]> wrote: > We just call resultSet.getObject(String) , where resultSet is an instance > of org.h2.jdbc.JdbcResultSet > > On Wednesday, November 5, 2014 8:13:26 PM UTC+3, Thomas Mueller wrote: >> >> Hi, >> >> Thanks a lot! I see the problem, and I think I have a solution. Could you >> tell me how the application code looks like that uses this method? I mean, >> what JDBC API methods are used. >> >> Regards, >> Thomas >> >> On Wed, Nov 5, 2014 at 4:23 PM, Sergey Evdokimov <[email protected]> >> wrote: >> >>> DateTimeUtils.getTimeTry(boolean, TimeZone, int, int, int, int, int, >>> int, int) get a lot of time because each call creates new instance of >>> Calendar using Calendar.getInstance(tz) >>> >>> There is optimization: >>> >>> if (tz == TimeZone.getDefault()) { >>> c = CACHED_CALENDAR.get(); >>> } else { >>> c = Calendar.getInstance(tz); >>> } >>> >>> But this optimization does not work because TimeZone.getDefault() always >>> returns new instance on TimeZone, so condition tz == >>> TimeZone.getDefault() is false always. >>> >>> CPU usage snapshot is attached. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "H2 Database" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/h2-database. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
