• 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: What is the purpose of static typing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the purpose of static typing?


  • Subject: Re: What is the purpose of static typing?
  • From: Andy Lee <email@hidden>
  • Date: Thu, 25 Jul 2002 09:59:19 -0400

At 9:18 AM -0400 7/25/02, jas. hook wrote:
you should try the test again; but this time, time the statically typed messaging first, and the dynamically typed messaging second.

Better yet, separate the tests into two applications that are identical except for the statically-typed vs. id-typed declarations. This way one test is much less likely to be skewing the other test.

Once you've done that, you might try diffing the binaries of the two apps. Make sure to run "strip" first on both of them. I just did that with two versions of a trivial program that differed only in the declaration of an NSWindow* as an id. The binaries were identical, so there *couldn't* have been any performance difference, at least not due to how I declared the variables.

--Andy
_______________________________________________
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.

References: 
 >Re: What is the purpose of static typing? (From: "jas. hook" <email@hidden>)

  • Prev by Date: Re: Adding custom string encodings to NSString/CFString
  • Next by Date: Re: Programmatic layout and creating round buttons?
  • Previous by thread: Re: What is the purpose of static typing?
  • Next by thread: Re: What is the purpose of static typing?
  • Index(es):
    • Date
    • Thread