From c4e9ae3f922fe4397c85353e35d6ca8a451d031c Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Tue, 13 Dec 2016 23:02:09 +0100 Subject: [PATCH] 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] https://github.com/facebook/buck/commit/97a8dc08acce6b0bf04820f2d29bc1fb85957ad1 Change-Id: I76c82fbc9876a4acd48ba0cc83bfed50109f8be8 --- .buckconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.buckconfig b/.buckconfig index 60fd02ac54..11cfe37d27 100644 --- a/.buckconfig +++ b/.buckconfig @@ -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