• 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: Mutable arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mutable arrays


  • Subject: Re: Mutable arrays
  • From: "Michael Ash" <email@hidden>
  • Date: Mon, 20 Oct 2008 10:31:01 -0400

On Mon, Oct 20, 2008 at 1:35 AM, j o a r <email@hidden> wrote:
> Some general suggestions for best practices wrt. optimizations:
>
>        1)      Measure first
>        2)      Implement supposed optimization
>        3)      Measure to see the impact of the code change
>        4)      Based on the result of #3, either scrap your changes, or
> document the optimized code

And don't forget step 0:

0) Don't even bother

A lot of people optimize code that's already plenty fast. A lot of
people optimize code that *hasn't even been written yet*. This is
foolish. Write your code to be easy to understand and as bug-free as
you can get it. And then, only if it's not running as fast as you need
it to, should you even start to consider the possibility of thinking
about beginning to investigate optimizing the code.

Mike
_______________________________________________

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: Mutable arrays
      • From: Roland King <email@hidden>
    • Re: Mutable arrays
      • From: email@hidden
References: 
 >Mutable arrays (From: DKJ <email@hidden>)
 >Re: Mutable arrays (From: Graham Cox <email@hidden>)
 >Re: Mutable arrays (From: j o a r <email@hidden>)

  • Prev by Date: Re: Is there a character limit in (NSString* title) and (NSString* message) in NSBeginCriticalAlertSheet dialog?
  • Next by Date: Re: Mutable arrays
  • Previous by thread: Re: Mutable arrays
  • Next by thread: Re: Mutable arrays
  • Index(es):
    • Date
    • Thread