Hey,
As of Java 8 there is the possibilty to call Method.getParameterCount(), which is a much more efficient variant in case just the parameter count is needed. Method.getParameterTypes() clones the underlying parameters and therefore creates unnecessary pressure on the heap in such cases.
I revised all places to use the new method. A PR will follow in some minutes.
Cheers, Christoph |
|