On 3/28/14, Rick Mann <rm...@latencyzero.com> wrote: > The best thing is to code it up and try it. >
I agree. And please share your findings. I coincidentally ran a similar experiment on iOS (iPad mini, 1st gen). I switched a non-optimized codebase using double as its floating type to float, and for the integer type from long long to int). I think most of the critical loop calculations were floating point so I don't think the integers made much of a contribution, though I could be mistaken. This change saw around a 10% speed up. This app is a little unusual, so I don't know how well this extrapolates. That said, for real number performance, you should be looking at vectorizing operations to take advantage of prefetch and minimize cache misses. Things like the Accelerate framework are your friends. -Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com