18
I'd like to know if there are any comparison/studies about the performance of repeatidly calling (in Java) the Method.getAnnotation(Class) and Field.getAnnotation(Class) methods, versus storing (at program start up time) a precomputed Map with this metadata information of the classes and querying it repeatidly later. Which one would provide the best runtime performance?
And this performance would be the same under Java 5, 6 and 7?