-
I've successfully upgraded a project from TCA 0.57 to 1.7.*, and everything is working well. However, my build times are ~8x longer (than on TCA 0.57), and during the build, all my CPU cores are over 95% with a process named ComposableArchitectureMacros. Can anyone tell me if I have Xcode configured incorrectly? I'm using Xcode 15.2 (15C500b) on a M3 Max (16 cores) with 128GB of memory. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
If you're building in release mode, that's just swift-syntax. Otherwise it may just be a build issue. Nothing to configure, but there may be some local workarounds you can do (https://forums.swift.org/t/compilation-extremely-slow-since-macros-adoption/67921/59) but it's really an Apple issue. |
Beta Was this translation helpful? Give feedback.
-
Yeah, this is a well known problem with macros, and so far Apple has not provided any guidance on how to solve it. The problem is that using macros largely requires SwiftSyntax, which currently takes 15-20 seconds to compile in debug and 2+ minutes in release. |
Beta Was this translation helpful? Give feedback.
If you're building in release mode, that's just swift-syntax. Otherwise it may just be a build issue. Nothing to configure, but there may be some local workarounds you can do (https://forums.swift.org/t/compilation-extremely-slow-since-macros-adoption/67921/59) but it's really an Apple issue.