Just to play devil's advocate... isn't it true that Hibernate, iBATIS and
other similar offerings can do optimizations at the query level that
offsets  much, if not all, of the reflection costs?

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Mon, November 28, 2005 12:14 am, Paul Benedict said:
>>>If a web app uses JDBC only, is the performance slower than Hibernate or
>>> iBatis?
>
> Pure JDBC is actually faster because there is no abstraction on top.
> IBATIS and Hibernate (I use
> both) rely on reflection to populate objects and reflection is 2x-10x
> slower than direct Java
> access. However, being actually faster (in nano or microseconds) doesn't
> look much different from
> a user's perspective. If you have extremely high performance requirements,
> don't deal with
> anything that does reflection - do straight SQL over JDBC.
>
> Paul
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to