After more deepening and debugging, I found a problem. It turns out that this is actually a type inference, as other posts suggested. One of the problems is that I did not notice that the output of the assembly in the Report Navigator shows an arrow for files that are still compiling, and a tick for those that are done (my color blindness played a role). So I thought that they all finished compiling when it wasnβt.
Anyway, I read the article here: GM released the Xcode 6 compilation and assembled the entire project line, which showed me the file that was the problem. Then, using the CTRL- \ approach described above, I found the culprit.
It turned out that this line was the problem:
ourWindowCopy.position = CGPoint(x: ((26.5 + theXOffset) * self.multiplierWidth) + (4.0 * CGFloat(randomRow) * 2.0 * self.multiplierWidth), y: ((41.0 + theYOffset) * self.multiplierHeight) + (5.75 * CGFloat(randomColumn) * 2.0 * self.multiplierHeight))
I know this is a mess - I played with a bunch of different options at an early stage and have not yet returned to simplification. I replaced it with this (and, of course, we will replace literals, and also just further):
let floatRandomRow = CGFloat(randomRow) let floatRandomCol = CGFloat(randomColumn) let pointX: CGFloat = ((26.5 + theXOffset) * self.multiplierWidth) + (4.0 * floatRandomRow * 2.0 * self.multiplierWidth) let pointY: CGFloat = ((41.0 + theYOffset) * self.multiplierHeight) + (5.75 * floatRandomCol * 2.0 * self.multiplierHeight) ourWindowCopy.position = CGPoint(x: pointX, y: pointY)
Now the compilation speed is very fast!
Iβm not sure that there is any new information here, but I would like to close this decision if someone comes across it.
source share