Skip to content

Commit

Permalink
realme_trinket: : Enable Zygote Pre-forking
Browse files Browse the repository at this point in the history
- This property gives faster app startup times (in Android 10 only) at the expense of a small amount of memory.

- Zygote preforking which basically maintains empty copies of zygote that apps can use to start faster without have to go through the overhead of creating an zygote copy during launch.

- Also, add a property to limit the memory overhead to 5mb

Credits to @DanGLES3 for finding this tweak.
  • Loading branch information
chil360 authored and dodyirawan85 committed Nov 8, 2020
1 parent 68343e2 commit c933ff6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,8 @@ PRODUCT_BOOT_JARS += \
# zRam
PRODUCT_PACKAGES += \
set_zram.sh

# Zygote preforking
PRODUCT_PROPERTY_OVERRIDES += \
persist.device_config.runtime_native.usap_pool_enabled=true \
persist.device_config.runtime_native.usap_pool_size_max=5

0 comments on commit c933ff6

Please sign in to comment.