I have written an app that does astronomical calculations like that , Sun and Moon rise and set and location and….. I never saw a problem with speed. I was very impressed with how much it can do. However, are you using Objective C methods for the calculations? The run time dispatch in Objective C could slow things considerably. I wrote all my math in C++.
David On Aug 7, 2013, at 1:50 PM, Trygve Inda <[email protected]> wrote: > I have an app that is running slow. I have narrowed it down to several > functions which are trig-intensive (used to calculate the position of the > moon at a given moment and more specifically to calculate rise/set times). > > To calculate the position and rise/set times for a month on average, > requires: > > 300 trig functions for position > 24 points in time to find the correct set of three points > 30 days > 2 events > > Total of 432,000 trig functions (mostly sin and cos) > > On my iPad 3, this takes about 3 seconds, and on my desktop (2.3GHz > Quad-core i7) it is nearly instantaneous. > > I am using doubles (not floats). > > What can I do to speed this up? > > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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/rowlandd%40sbcglobal.net > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
