Java Mailing List Archive

http://www.gg3721.com/

Home » the NHibernate development list »

[NHibernate-development] Equals (->IsEqual)

Roger Kratz

2008-02-06

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi there

 

I’ve just worked  with a performance issue in our app where it turned out to be lots of time spent in ComponentType’s equals method where every field is compared using reflection. In my specific use case, it’s dramatically slower per call than a similar EntityType’s equals method (where nhib’s impl internally relies on the developer’s impl of equals). I might miss something obvious here, but why don’t nhib team trust the developer to properly impl equals on value types just as they do on entities?

 

I’ve seen in the trunk that there’s been changes since the v 1.2, but as far as I can see (if Equals will be replaced by IsEqual?) the “problem” above still exists.

 

What am I missing/misunderstood? If I haven’t, I’ll be glad to contribute on this.

 

Regards

Roger, Sweden

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nhibernate-development mailing list
Nhibernate-development@(protected)
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
©2008 gg3721.com - Jax Systems, LLC, U.S.A.