Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 229d0534 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by Andreas Gampe
Browse files

Use speed-profile instead of quicken for the profile case

Reduces calculator launch from 354 -> 325 with a profile.

(cherry picked from commit c5536ffb)

Bug: 38032017

Test: mm

Merged-In: I795a2d3f4db5546be4d77c3716e69d20d8f23549
Change-Id: I795a2d3f4db5546be4d77c3716e69d20d8f23549
parent 1d9689b3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -159,9 +159,14 @@ ifneq (,$(filter $(PRODUCT_SYSTEM_SERVER_JARS) $(PRODUCT_DEXPREOPT_SPEED_APPS) $
else
  # If no compiler filter is specified, default to 'quicken' to save on storage.
  ifeq (,$(filter --compiler-filter=%, $(LOCAL_DEX_PREOPT_FLAGS)))
    ifeq (true,$(LOCAL_DEX_PREOPT_GENERATE_PROFILE))
      # For non system server jars, use speed-profile when we have a profile.
      LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=speed-profile
    else
      LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=quicken
    endif
  endif
endif

$(built_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS)
$(built_vdex): $(built_odex)