Hi,

Thanks ! But  I was looking for the type of optimization as done by
JIT at run time,

Atleast for system apps whatever JIT does at run time if we could do
at image build time then that would make system a bit faster. This opt
would be like convertng java code to native.

Is there anyway to achieve this ?

Regards,
Pradeep

On Apr 8, 10:17 am, freakingtux <[email protected]> wrote:
> Hi
>
> Somebody else was kind enough to send me an email about dexopts. Basically
> in some situation it is possible to already replace the byte code into
> optimized dex inside the apk. Documentation can be found in the dalvik
> documentation folter dalvik/docs/dexopt.html) but also (the same) 
> herehttp://blogold.chinaunix.net/u3/116108/showart_2260593.html
>
> Preparation
>
> There are at least three different ways to create a "prepared" DEX file,
> sometimes known as "ODEX" (for Optimized DEX):
>
>    1. The VM does it "just in time". The output goes into a special
>    dalvik-cache directory. This works on the desktop and engineering-only
>    device builds where the permissions on the dalvik-cache directory are not
>    restricted. On production devices, this is not allowed.
>    2. The system installer does it when an application is first added. It
>    has the privileges required to write to dalvik-cache.
>    3. The build system does it ahead of time. The relevant jar / apk files
>    are present, but the classes.dex is stripped out. The optimized DEX is
>    stored next to the original zip archive, not in dalvik-cache, and is part
>    of the system image.## precise GC ##
>    4.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to