Re: Speed Traps
Re: Speed Traps
- Subject: Re: Speed Traps
- From: John Nairn <email@hidden>
- Date: Thu, 15 May 2003 12:15:12 -0600
Thanks for the input, the question probably was too vague but the
answers were suitably general to be helpful.
One reason I did not profile the code was because it seemed absolutely
obvious that my new approach would be much faster. I was thus shocked
when not only did it not get faster, but it got slower.
I did achieve speed up by factor of 3 by eliminating all use of
NSMutableArray. I converted the array of token objects into a linked
list (each object has pointer to the next one). The identical
calculations are 3 times faster with linked lists than when accessing
the same objects from an NSMutableArray.
Now I will try the profilers to see if there is any more room for
improvement.
Thanks for the feedback.
------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.