Swift's size optimization changes the cost of inlining
engineeringswiftcompilersoptimizationSwift 4.1 adds a size-oriented optimization mode. Smaller inlining thresholds and shared helper functions reduce duplication while preserving optimizations that can remove code.