I just wrote a small program in Objective C and in Java to compare relative speeds -- expecting xcode to be much faster, but ....
The xcode took about 5 seconds where the same Java program logic took only 1.4 seconds!
My question is whether using the xcode terminal option and typing in a program that runs within xcode is a fully compiled xcode program?
If running an xcode program in terminal mode is "fully compiled" then I'm confused how xcode could/would be so much slower than the equivalent Java program.
Each program counted from 1 to 2,000,000,000 and did a simple addition inside the loop. Both programs printed out the time before and after the loop.
Look forward to any insights.
Thanks,
-- m
The xcode took about 5 seconds where the same Java program logic took only 1.4 seconds!
My question is whether using the xcode terminal option and typing in a program that runs within xcode is a fully compiled xcode program?
If running an xcode program in terminal mode is "fully compiled" then I'm confused how xcode could/would be so much slower than the equivalent Java program.
Each program counted from 1 to 2,000,000,000 and did a simple addition inside the loop. Both programs printed out the time before and after the loop.
Look forward to any insights.
Thanks,
-- m