Android now runs exclusively on the new ART runtime, built from the ground up to support a mix of ahead-of-time (AOT), just-in-time (JIT), and interpreted code.
ahead-of-time
(AOT)
在ART
环境中,应用在第一次安装的时候,字节码就会预先编译成机器码,使其成为真正的本地应用。这个过程叫做预编译(AOT,Ahead-Of-Time)
just-in-time
(JIT)
在运行时动态地将执行频率很高的dex字节码翻译成本地机器码,然后再执行
本文深入探讨了Android系统中新的运行时ART(Android RunTime),详细解释了其采用的AOT(提前编译)和JIT(即时编译)机制如何提高应用性能。AOT在应用首次安装时即进行字节码到机器码的转换,而JIT则针对运行时频繁调用的代码进行动态编译。
234

被折叠的 条评论
为什么被折叠?



