Hi,
While I was checking the performances of my web application using NHibernate, I wondered why 13% of CPU time was used by RuntimePropertyInfo.GetValue. It appears that this reflection method is used by ComponentType.Equals() (itself used by EntityKey.Equals()).
For what I've read so far, NHibernate actually creates proxies to limit the use of reflection. But in the case of comparing composite ids, NHibernate just uses Reflection and this is a real issue in my case. Anyone has a turnaround for this problem ? Can Nhibernate be tuned in order to use proxies for comparing composite ids as well ?
Thanks !
|