Shark has identified a area of code to be improved – Unaligned loop start
and recommends adding -falign-loops=16 (gcc compiler flag). I’ve added this to
Other C flags in iphone Xcode both to the dependant project and top level project. However it still does not seem to affect the performance and Shark is still reporting the same problem
so it appears it didn’t work.
Am i doing this correctly?
The hints from Shark are not always helpful or appropriate – you have to make the final decision – if your loop is quite small then loop alignment might make a small difference, but there are probably much more important things that you would look at optimising before that.