Reflection is extremely fast for method invocation. To minimize your method
lookups, store them as you use them in a hashtable.

You should notice no (negligible) performance hit using reflection.

jim

----- Original Message -----
From: "Jorge Salas-Ortiz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 01, 2000 2:10 PM
Subject: Re: EJB Inheritance, polymorphism and generic code


> Watch out for performance problems with Reflection.
> In the past I've done a small amount of reflection
> coding and remembered alot of performace hits...this
> may further be magnified when you introduce remote
> calls as well.
>
> --- "Sriram Narayan (CTS)" <[EMAIL PROTECTED]>
> wrote:
> > how about using 'Reflection' to solve the general
> > problem of polymorphism.
> > Casting is no longer needed as u would be invoking
> > methods via refection api
> > on 'Class' objects.
> >
> > -sriram
> >
> >
>
===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED]
> > and include in the body
> > of the message "signoff EJB-INTEREST".  For general
> > help, send email to
> > [EMAIL PROTECTED] and include in the body of the
> > message "help".
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Kick off your party with Yahoo! Invites.
> http://invites.yahoo.com/
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to