[hibernate-dev] Gradle branch

2010-06-02 Thread Steve Ebersole
Wanted to point out that I have a new Gradle PoC branch in SVN at https://svn.jboss.org/repos/hibernate/core/branches/gradle2 Of special interest, this branch supports generating intellij project from the source. The Gradle guys have been really awesome in helping me to get this ready. You'll ne

Re: [hibernate-dev] Optimizing reflection optimization

2010-06-02 Thread Steve Ebersole
Ok, now that is reasonable :) And looking through the source (for Field at least) is does circumvent a lot of checks if accessible is set. So I can move the '!ReflectHelper.isPublic' check into the catch blocks to continue to error in cases where we *need* to call setAccessible; for other cases I

[hibernate-dev] [HSEARCH] New Query API: last call

2010-06-02 Thread Emmanuel Bernard
Guys, I'me now done with the level of abstraction and fluidity I wanted out of the query DSL. Please review before we push that out. Key features: - fluent API - use the field bridge system: type is passed, not raw string - use the analyzer transparently - simple use case simple, complex use

Re: [hibernate-dev] Optimizing reflection optimization

2010-06-02 Thread Кирилл Кленский
"We do in fact utilize setAccessible in the Hibernate code" Yes, but if I am not mistaken only if the method/field is not public. From code: !ReflectHelper.isPublic(theClass, method) ) method.setAccessible(true); We could increase performance easily if we call setAccessible even for public methods

[hibernate-dev] Hibernate Validator 4.1.0.Beta2 with programmatic constraint configuration API

2010-06-02 Thread Hardy Ferentschik
All info here - http://in.relation.to/15699.lace --Hardy ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] Optimizing reflection optimization

2010-06-02 Thread Steve Ebersole
Perhaps. We do in fact utilize setAccessible in the Hibernate code and so when I did performance testing I did that as well as it most closely matched our actual usage. Most likely it applies the checks "up front" when setAccessible is called. I'll take a look at the test and the numbers when i

Re: [hibernate-dev] Optimizing reflection optimization

2010-06-02 Thread Кирилл Кленский
Hi, I have done some tests that are more pure in that they do not involve the application logic. Java version: jdk1.6.0_19 32-bit Results include both client and server mode tests. Numbers represent 100 000 000 invocations time in milliseconds. The result format is the following: server_mode_