In reflection there are two things that needs to be done in order to invoke a method on an object: lookup the method, and invoke it on the object. The latter is fast, the former is slow. Method lookups in invoke() are not cached, hence seriously impacting the performance of MBeanServer.invoke().
|