commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <>
Subject Re: [BeanUtils] MethodUtils caching
Date Tue, 17 Dec 2002 18:38:07 GMT
are you using the latest beanutils release?

the performance of this code was significantly improved for the last 

- robert

On Tuesday, December 17, 2002, at 08:03 AM, Matt Smith wrote:

> I'm looking for a way to speed up some of my uses of Digester, and 
> SetNextRule heavily relies upon MethodUtils.invokeMethod. What I've seen 
> is that most of the time spent in getMatchingAccessibleMethod, and in 
> particular in Class.getMethods(). Most of this is wasted work, since it's 
> pretty much always the same class and paramType list being used for any 
> particular instance of SetNextRule. So I'd like to cache the results of 
> getMatchingAccessibleMethod, but it's private, making it a cut & paste 
> job to do so. I can do that if I have to, but I was wondering if there is 
> any code out there that is currently doing this type of caching already, 
> of if you guys can tell me a better way to deal with this. I'd like to 
> continue to benefit from updates to BeanUtils without re-copying code 
> every time.
> -Matt

View raw message