Regarding Swift type inference compile-time performance

In general yes, but the specifics change over releases. The compiler's performance regresses a bit every release (at least as measured through Xcode), though specific things may improve. 5.9 especially regressed, both in CPU performance and overall memory usage, though at least part of that are bugs in Xcode and other tools like the iOS simulators. For my small test cases, the improvements to linking in Xcode 15 (great!) were more than offset by the loss in compiler performance (aww), so overall build performance dropped.

3 Likes