~/talk

K2 compiler in production

links:none on file
slides:none on file

Meta migrates its Android build pipeline to the K2 compiler over two years, and now 95% of modules for big apps are compiled with it; internal benchmarks show K2 makes front-end work about 20% faster on average, with Instagram and Threads shipping releases built by K2. Migration requires rewriting compiler plugins to FIR, handling KSP/KPT differences, and adding Java 17 support; backend parallelism proved ineffective for this build graph, while the new KSP2 and plugin changes deliver the biggest practical wins.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03K2 compiler in production
  3. 3:59Investing in K2 compiler
  4. 6:31K2 compiler history
  5. 8:44Build types defined
  6. 11:16Compiler throughput optimizations
  7. 15:14Optimizations impact on builds
  8. 16:44K2 architecture complexity
  9. 19:41K2 reliability challenges
  10. 21:06Early K2 experiments
  11. 22:33Migrating plugins to K2
  12. 24:25Enabling K2 builds
  13. 26:14Plugin migration challenges
  14. 28:44Plugin compatibility solutions
  15. 29:28K2 maturity and v2.0
  16. 31:35Java 17 support impact
  17. 32:42K1 to K2 migration plugin
  18. 33:25Stable K2 compiler benefits
  19. 34:11Key takeaways and next steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.