>>>>> "Gin" == Gin Chen <Chen> writes:

    Gin> One thing that I've noticed with BeanUtils is that it will overuse that
    Gin> introspection.
    Gin> for example. I have 2 beans:

    Gin> BeanA          BeanB
    Gin> String a;      String a;
    Gin> String b;      String c;
    Gin> String c;      String d;
    Gin>                String e;
    Gin>                String f;
    Gin>                String g;

    Gin> if I call BeanUtils.
    Gin> all getters for BeanB will be called even though d e f and g do not exist in
    Gin> BeanA.
    Gin> Thats a waste of cycles in high load applications.

I suggest you submit a bug report for BeanUtils.  From a short look at the
code, it doesn't look like a very easy refactoring, and it's not very clear
what the cost/benefit would be, but it'll never happen if you don't ask for
it.  When you write the report, make sure you make it clear exactly what you're
doing.  I had to make some guesses about what exactly you meant (but I think I
made the right ones).

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to