-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: nHibernate and reflection question
PostPosted: Tue Mar 14, 2006 4:51 pm 
Newbie

Joined: Mon Mar 13, 2006 4:17 am
Posts: 4
I would like to use nHibernate into a .NET project i have
but people that are more experience in .NET than me told me
not to do it because of the reflection the nHibernate use. They say that reflection in the .NET is way too slow and nHibernate will kill the performance of the application. Is this true ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 14, 2006 5:53 pm 
Newbie

Joined: Sun Sep 25, 2005 9:11 am
Posts: 13
Location: Bergen, Norway
NHibernate uses reflection when the SessionFactory is created, which usually is when the applications starts. Code for setting the values in your objects is also generated at startup, with help from reflection, so reflection isnt used when you do CRUD-operations.

I'm not too familiar with the core of NHibernate, so I wont go into details. I will let someone else do that. :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 14, 2006 6:14 pm 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
Yes, NHibernate uses reflection, but the impact of reflection is often exagerrated. Often, a single database call will impact performance much more than thousands of reflection calls.

_________________
Cuyahoga


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.