Buck: Mark auto value annotation processors as safe
This diff: [1] allows marking certain annotation processors as "safe"
via a `.buckconfig` item, and then reuses class loaders when only
"safe" annotation processors are involved.
This results in a 50% reduction in annotation processing time (42%
reduction in `javac` time) in a large test build, as measured by Buck
tracing.
[1] 97a8dc08ac
Change-Id: I76c82fbc9876a4acd48ba0cc83bfed50109f8be8
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
[java]
|
||||
jar_spool_mode = direct_to_jar
|
||||
safe_annotation_processors = com.google.auto.value.processor.AutoAnnotationProcessor,com.google.auto.value.processor.AutoValueProcessor
|
||||
src_roots = java, resources, src
|
||||
source_level = 8
|
||||
target_level = 8
|
||||
|
Reference in New Issue
Block a user