> 
> On Aug 7, 2013, at 14:34 , Trygve Inda <cocoa...@xericdesign.com> wrote:
> 
>> I am currently doing it on an NSThread. I may try replacing all the doubles
>> with floats in the algorithm and see how that goes (on a backup of course!).
> 
> Yes, floats should help (unless precision errors make it worse). You'll be
> moving a lot less memory around, and they're computed in hardware (I think
> double requires software intervention, but I could be wrong about that).
> 
>> How do I set optimization on a per-file basis?
> 
> In the Target settings, Build Phases tab, Compile Sources phase, you can set
> individual compiler flags. I put -O3 on each of the files I want optimized.
> -O2 or -Os should be tried, too, to see which gives you the best results.
> 

I tried using floats and the results were wrong, presumably due to lower
precision and compounding of errors (but it took roughly the same amount of
time as doubles).



_______________________________________________

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

Reply via email to