Optimization Principles
LTO is a mature compilation optimization technology and has been widely used in the industry. Cross-file function inlining can be used to reduce the calling overhead. Cross-file function specialization and constant propagation can be used to eliminate redundant code and implement cross-language optimization. This brings considerable performance benefits and has certain effect on frontend and backend bottlenecks from the perspective of top-down analysis.

Parent topic: Link Time Optimization (LTO)