• 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: ObjC in time-critical parts of the code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjC in time-critical parts of the code


  • Subject: Re: ObjC in time-critical parts of the code
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 19 Jan 2009 19:21:32 -0500

On Sun, Jan 18, 2009 at 7:10 PM, Bill Bumgarner <email@hidden> wrote:
> Simple question:  Is it better to pursue a 20%, or even 50%, improvement in
> drawing speed by rewriting in C++ or C than, say, preventing the 2, 3, 4, or
> more extra redraws that are happening prior to window flush?   Don't laugh
> -- I have seen it happen.  Often.

This just got posted to programming.reddit.com: "My iPhone is not a
Mac Pro": http://www.reddit.com/r/programming/comments/7qxuv/my_iphone_is_not_a_mac_pro_speeding_up_iphone/

In it, the author discusses improving the speed of his iPhone app.
Importantly, he starts by improving the data structure in which he
stores the app's data, and then improving the algorithms used to
access that data.  Eventually he employs some C++ to get a significant
speed boost, but the decision has *nothing* to do with non-virtual
member functions or other such oft-touted C++ speed improvements -- in
fact, he compares it to using -[NSArray
sortedArrayUsingFunction:context:], which doesn't incur the ObjC
dispatch overhead.  It's all about the algorithm, and C++ happened to
have one he could use that improved his code's speed.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ObjC in time-critical parts of the code
      • From: Scott Ribe <email@hidden>
    • Re: ObjC in time-critical parts of the code
      • From: Bill Bumgarner <email@hidden>
References: 
 >Re: ObjC in time-critical parts of the code (From: Justin Carlson <email@hidden>)
 >Re: ObjC in time-critical parts of the code (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Test for typeName failing
  • Next by Date: Re: ObjC in time-critical parts of the code
  • Previous by thread: Re: ObjC in time-critical parts of the code
  • Next by thread: Re: ObjC in time-critical parts of the code
  • Index(es):
    • Date
    • Thread