From 2d5ec3d44c679f37d348382f3a82de721854e048 Mon Sep 17 00:00:00 2001 From: Jake Weinstein Date: Wed, 15 Jun 2022 19:17:44 +0100 Subject: [PATCH] sm7125: 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. --- common.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.mk b/common.mk index 87e01d0..d7eeb60 100644 --- a/common.mk +++ b/common.mk @@ -452,6 +452,10 @@ PRODUCT_SOONG_NAMESPACES += \ hardware/google/pixel \ $(COMMON_PATH)/aidl/power-libperfmgr +PRODUCT_DEXPREOPT_SPEED_APPS += \ + Settings \ + SystemUI + # Prop files TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop