Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the purpose of static typing?



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.