3 ms·
yeah, it would be nice to see what code is actually generated that makes it faster... ... also, have you considered pointer arithmetic? your style of for loop
by jheriko 14y ago
yeah, it would be nice to see what code is actually generated that makes it faster...
... also, have you considered pointer arithmetic? your style of for loop is nothing i would ever write to begin with. perhaps this is why the compiler has a hard time with it - it is quite unusual - the extra loop counter seems pointless and can be removed by a single pre-calculation
- latitude 14y ago> ... also, have you considered pointer arithmetic? Good point. Tried it and makes no difference. Looking at the assembly, it appears that the difference in performance lies in the prolog code for the loop rather than in the loop itself.