OSDN Git Service

emulator: Enable dex-preoptimization
authorDavid 'Digit' Turner <digit@android.com>
Wed, 15 Jun 2011 23:32:20 +0000 (01:32 +0200)
committerDavid 'Digit' Turner <digit@google.com>
Thu, 7 Jul 2011 22:01:11 +0000 (00:01 +0200)
commit4b65598642fce27ab7d2e02bfb24b76baa67580d
tree3d58a307c505585fa59ac7ad83912ab0f8b9c1da
parent3248bb2e076cb26a71c6a08e9788b2853e1f5f97
emulator: Enable dex-preoptimization

Backport from AOSP master.

This enables the Dex pre-optimization for emulator-specific builds.
The idea is to speed up the initial boot sequence of an SDK AVD by
avoiding the costly on-device preopt pass that is performed otherwise
the first time the AVD is launched.

Benchmarking shows reductions in first boot time from 1m30s to 40s
on a 2.4GHz Xeon when emulating the AOSP master ToT.

Change-Id: Ibf5ebe68aa4d363c9df05d2ffe7cb828ef99f922
Orig-Change-Id: I67a9ce9791220c202817864c6e83dc8fd9cbc027
target/board/generic/BoardConfig.mk
target/board/generic_x86/BoardConfig.mk