https://issues.apache.org/bugzilla/show_bug.cgi?id=55611
--- Comment #2 from [email protected] --- (In reply to Yegor Kozlov from comment #1) > Thanks for the patch. The idea is cool but not thread safe. What if > DateUtil.isADateFormat is called from two threads in parallel? I think you > will have a race condition in this case. > > I would say we should declare this method as synchronized to be on the safe > side. > The same concern applies to > https://issues.apache.org/bugzilla/show_bug.cgi?id=55612 I changed the method DateUtil.isADateFormat as synchronized and re-done the tests. We obtain similar results (in the range of -2%) with the same single-thread setups (I don't have any multi-threaded test-case to use). More results for https://issues.apache.org/bugzilla/show_bug.cgi?id=55612 are coming. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
