Baidu Geek Talk
Sep 20, 2023 · Backend Development
How Baidu Cut iOS App Size by Removing Unused Methods with LLVM Libtooling
Baidu reduced the iOS app package by over 350 MB by discarding dead code, replacing unreliable Mach‑O analysis with a source‑level AST approach built on LLVM libtooling and the Swift compiler, and implementing a multi‑layer static‑analysis pipeline that extracts, transforms, stores, and filters method usage data.
ASTLLVMapp size optimization
0 likes · 17 min read
