Android ART

  • JIT compiler runs while you are using your app, adding latency and memory pressure.
  • The upside is that the JIT compiler can look at how you are using your code to perform profile-directed optimizations
  • Ahead of time compilation — process of converting C, C++, intermediate class files into machine executable code.
  • At install time, ART compiles apps using the on-device dex2oat tool. This utility accepts DEX files as input and generates a compiled app executable for the target device.
  • tighter install-time verification than Dalvik.
  • the apps are compiled to native code once. Therefore no byte-code is stored on our phones. Everything is native.
  • no profile-directed optimizations
  • reduces memory footprint and requires more disk space
  • lower GC time for first generation objects.
  • one big pause is there instead of two.
  • parallel GC — more than one thread doing GC.
  • concurrent garbage collections more timely.
  • GC itself takes less background memory usage and fragmentation.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store