for(int a=0;a<200;a++){
for(int g=0;g<200;g++){
char str[10];
snprintf(str, 10, "%d,%d", a,g);
key = [NSString stringWithCString:str encoding:NSASCIIStringEncoding];
}
}
Runs 4 times as fast on my old ipod touch 2g
Time old: 4.303022833333
Time new: 1.117406833333
3
solved Is there a way to speed up this Objective-C string assignment?