Baseline Profile
A mechanism in Android for ahead-of-time compilation of critical code paths. By recording hot methods from typical user journeys and distributing them with the APK, it enables ART to compile these methods directly at install time, reducing compilation and class-loading overhead during startup.
Timeline (last 90 days)
Measuring performance in release mode, combined with the R8 shrinking tool and Baseline Profiles, can yield roughly a 6x performance difference compared with a regular debuggable build.
R8 is responsible for shrinking and optimizing bytecode, while Baseline Profiles determine which code is compiled ahead of time; the two have different responsibilities but can be stacked.
All Facts (2)
Measuring performance in release mode, combined with the R8 shrinking tool and Baseline Profiles, can yield roughly a 6x performance difference compared with a regular debuggable build.
50%UnverifiedR8 is responsible for shrinking and optimizing bytecode, while Baseline Profiles determine which code is compiled ahead of time; the two have different responsibilities but can be stacked.
50%