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:
David Ostrovsky
2016-12-13 23:02:09 +01:00
parent 52e9272e68
commit c4e9ae3f92

View File

@@ -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