Slow compilation due to macros? #50
-
We noticed that our project has been taking considerably longer to compile. We stumbled on this thread, which appears to suggest that it could be due to using macros. Any thoughts to a potential workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This seems to be the cost of macros at the moment. In the thread you link a core team member is quoted to knowing that there is an issue, so all we can hope for is for Apple to address it in the future. |
Beta Was this translation helpful? Give feedback.
-
In case it helps anyone, we experimented with a pre-compiled Swift Syntax framework. Not only does that appear to work, it cut down our rebuild time from ~120s to ~10s. Each and every time we rebuild. |
Beta Was this translation helpful? Give feedback.
This seems to be the cost of macros at the moment. In the thread you link a core team member is quoted to knowing that there is an issue, so all we can hope for is for Apple to address it in the future.