3 ms·
java -XX:+PrintCompilation prints all methods/loops generated to native code The reflection API has two issues, a security check each time you call a method an
by _old_dude_ 5y ago
java -XX:+PrintCompilation prints all methods/loops generated to native code
The reflection API has two issues, a security check each time you call a method and the arguments being transformed to objects.
The code is still generated to assembly code but the assembly code is slower because of that overhead.