Read Understanding @inlinable in Swift. Then read two years older of the same author The Forbidden @inline Attribute in Swift. Read Cross-module inlining and specialization. Read When should both @inlinable and @inline(__always) be used?. The last is extremely interesting.