From 2d732e0070c8650f3dcbe06d52768d6a1cfa8b89 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Wed, 11 Mar 2020 16:28:05 -0700 Subject: [PATCH] Do not include any documentation when building stubs We only need documentation (javadocs) when building docs stubs, for regular stubs, we can drop printing out all the docs. Tested with: touch frameworks/base/core/java/android/view/View.java && time make -j framework Before (with just r.android.com/1254909) Run #1 2m4.779s Run #2 2m6.672s Run #3 2m4.179s Average: 125.2 seconds After (with this patch and r.android.com/1254909) Run #1 1m58.682s Run #2 1m58.820s Run #3 1m57.724s Average: 118.4 seconds Speedup ~6.8 seconds (5.4%) Bug: 151160048 Test: make checkapi Change-Id: I27eafb5a61bb9d26a74ca25f84c9daca17a8394f Merged-in: I27eafb5a61bb9d26a74ca25f84c9daca17a8394f --- java/droiddoc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/java/droiddoc.go b/java/droiddoc.go index fd4b90df3..70d997a43 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -1344,6 +1344,7 @@ func (d *Droidstubs) stubsFlags(ctx android.ModuleContext, cmd *android.RuleBuil cmd.FlagWithArg("--doc-stubs ", stubsDir.String()) } else { cmd.FlagWithArg("--stubs ", stubsDir.String()) + cmd.Flag("--exclude-documentation-from-stubs") } }