I'm using XCode 13.4 on macOS 12.4, M1 Pro chip. Building a react native project takes around 10 minutes. Indexing is paused for a long time. Building the debug variant is very fast, but the release variant is pure horror.
Does anyone have any tips about how to check which parts of the code are slower to compile?