Pengwen Jiao

Tech Lead, Mobile Infrastructure @ TikTok

Talk Title

How to make Kotlin compile 2x faster on a super large project?

Room

Fountain Room

Date

19.09.2024

Time

13:40 > 40 min

Share

on Twitter

In this talk, we'll introduce 5 advanced optimizations, from easy to hard to existing Kotlin compilers which are related to cache rate improvement and cache reuse. One of the heavyweight optimizations we call the "baseline kotlin cache". As we all know, normally, any changes to a low-level module will make the parent module cache fingerprint change invalid. We solved this problem by turning the fuzzy cache of the compileKotlin task into an incremental record bin, and reducing the full build time of the TikTok app in any scenario to 50%! Those solutions from TikTok could help Kotlin module build 2x+ faster than it used to be.

Speaker Bio

He’s now work as the leader of TikTok global Android efficiency & US Mobile Infrastructure team, aim’s to improve TikTok’s engineering architecture design and development efficiency.

With 5 years experience on optimizing Gradle/AGP build process, IDE productivity enhancement. Also play the role as major maintainer of the private folk of the compilation toolchain and moving forward to MonoRepo based on high performance compiler, the build speed and local dev experience of the TikTok has been greatly improved.

Love contribute to open source and free programming, former administrator and contributor to the arch linux cn official forums. Contributor to Android Gradle plugin and Gradle.

Menu