• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Speed Traps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Tip for Cocoa newbies (and pros)
  • Next by Date: Re: Tip for Cocoa newbies (and pros)
  • Previous by thread: Undo menu not enabling with NSMovieView?
  • Next by thread: Re: Speed Traps
  • Index(es):
    • Date
    • Thread