ThinLTO
ThinLTO is a scalable form of Link Time Optimization (LTO) within the LLVM compiler infrastructure. It provides cross-module optimizations across large codebases while reducing memory usage and speeding up builds, by distributing analysis and using a compact global index during linking.
How ThinLTO works: Each translation unit is compiled into a bitcode module that includes a module summary.
Usage and support: ThinLTO is enabled in Clang/LLVM with the -flto=thin option. It requires toolchain support
Benefits and limitations: The primary benefits are reduced peak memory usage during link time, better scalability