• 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: loop efficiency & messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loop efficiency & messages


  • Subject: Re: loop efficiency & messages
  • From: John Stiles <email@hidden>
  • Date: Tue, 22 Mar 2005 14:21:12 -0800

On Mar 22, 2005, at 1:28 PM, Ondra Cada wrote:

Nevertheless, that are not quite important technicalities. What *is* important is that you just do not need this kind of optimization.

Maybe you don't.

To say that nobody ever needed to optimize away the cost of objc_msgSend is absurd. If you have a loop that Shark shows as taking a large % of your CPU time, and the loop body isn't doing much work per iteration, then making this kind of optimization could be very worthwhile.

There are a lot of documents that explicitly discuss ways to lower the cost of objc_msgSend; I'm not going to go look them up, but it's stuff like selector caching, etc. I assume these guys wouldn't have gone to the effort of figuring out these techniques just as an exercise, because they were bored. Obviously the message dispatch cost mattered to them at the time.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: loop efficiency & messages
      • From: Florent Pillet <email@hidden>
    • Re: loop efficiency & messages
      • From: Ricky Sharp <email@hidden>
    • Re: loop efficiency & messages
      • From: Ondra Cada <email@hidden>
References: 
 >loop efficiency & messages (From: Mark Dawson <email@hidden>)
 >Re: loop efficiency & messages (From: Ondra Cada <email@hidden>)
 >Re: loop efficiency & messages (From: "Corey O'Connor" <email@hidden>)
 >Re: loop efficiency & messages (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: [OT] Application ideas
  • Next by Date: Re: [OT] How to be a real programmer
  • Previous by thread: Re: loop efficiency & messages
  • Next by thread: Re: loop efficiency & messages
  • Index(es):
    • Date
    • Thread