From 88ac1c66f8c786e8c764731238bf833721a997cc Mon Sep 17 00:00:00 2001 From: Jake Weinstein Date: Tue, 2 Nov 2021 21:50:59 +0530 Subject: [PATCH] avicii: Use speed tuning for performance critical applications The default ART setting is quicken: run DEX code verification and optimize some DEX instructions to get better interpreter performance. This commit switches performance critical applications to speed: run DEX code verification and AOT-compile all methods. PRODUCT_DEXPREOPT_SPEED_APPS (New in Android O) List of applications that have been identified as core to the products and which are desirable to compile with the speed compiler filter. For example, persistent apps such as SystemUI get a chance to use profile-guided compilation only at the next reboot, so it may be better for the product to have these apps always AOT-compiled. Change-Id: Ib2dc9a55dfb332ba3fb84a13544d564a63f37ad2 --- device.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/device.mk b/device.mk index edca7cc..0a75645 100644 --- a/device.mk +++ b/device.mk @@ -336,6 +336,11 @@ PRODUCT_PACKAGES += \ android.hardware.power@1.2.vendor \ vendor.qti.hardware.perf@2.2.vendor +# Preopt SystemUI +PRODUCT_DEXPREOPT_SPEED_APPS += \ + Settings \ + SystemUI + # QMI PRODUCT_PACKAGES += \ libjson \