xiaodududu / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Cache result of Class.getAnnotations() #509

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Android doesn't cache the result. This really adds up when we're looking to 
identify scope and binding annotations.

We can have a simple internal cache Map<Class<? extends Annotation>, Boolean> 
that keeps track of whether or not an annotation is a scope or binding 
annotation.

Original issue reported on code.google.com by crazybob...@gmail.com on 29 Jun 2010 at 11:04

GoogleCodeExporter commented 9 years ago

Original comment by crazybob...@gmail.com on 30 Jun 2010 at 12:43

GoogleCodeExporter commented 9 years ago

Original comment by sberlin on 23 Nov 2010 at 1:28

GoogleCodeExporter commented 9 years ago

Original comment by crazybob...@gmail.com on 15 Dec 2010 at 11:52