How to reduce compiler type check time

Is there an Xcode or Swift tool to analyze compiler type-check? Or in other words, what's the best way to determine what is making a piece of code slow to type check?

I know about compiler flags to raise warnings (eg -warn-long-function-bodies), and type annotation. I'm looking for a tool that can tell me which specific parts of the code take long to type-check and what changes to make to reduce those times.

Thanks!

1 Like

You may find this post useful in Replacing the Type Checker.

2 Likes