Sometimes I'm writing some code on a playground that takes a while to complete. For example:
var values = [[Int]](count: 10000, repeatedValue: [Int](count: 73, repeatedValue: 0))
And everytime the playground wants to refresh the results, it has to run that piece of code (that takes a while to run) and it makes Xcode as a whole very sluggish.
I still want to be writing my code on a playground since it has some very nice features for testing your algorithms. However, I'm finding that I have to comment certain lines of code just to continue writing without interruptions.
Is there any way to say to Xcode: "Do not run my playground right now. I'll tell you when it's ready."?
No comments:
Post a Comment