Key Info

A Gemini engineer rewrote the iOS app's chat view controller, reducing it from 64,000 lines of accumulated architectural debt to 6,000 lines — a 90% code reduction — with metrics improving across the board.

Highlights

  • The iOS chat view controller had grown to 64k lines of architectural debt and paper cuts
  • One engineer rewrote it down to 6k lines, cutting 90% of the code
  • Message loading is faster, animations are smoother, and layout precision is better
  • Multiple similar rewrites are underway across the app, with more to come