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?



scratch that. if i'm putting nstextfields directly into the slots of an
nsmutable array, then that bypasses what we're after.

hhmmmm....

well, i need to get back to work now, but i'll play around with this a
little later.

- philip



On Thursday, July 25, 2002, at 09:28 AM, Philip George wrote:

> *This message was transferred with a trial version of CommuniGate(tm)
> Pro*
> That is actually a really good point that I hadn't thought of. If
> anything is getting cached here, then it's almost an advantage to be
> second in line. I switched them and lo-and-behold there is OBVIOUSLY
> caching going on here, without a doubt. In this test, idwin beats
> statictypedwin by a little on every run. At this point, I'm starting to
> doubt myself. But I know for a fact that I have clearly observed
> dynamic typing taking longer at runtime with LOTS of objects. So now I
> average the test results and get:
>
> [series 1 with idwin loading/drawing first] :
> static wins by a difference of 0.216 sec
>
> [series 1 with statictypedwin loading/drawing first] :
> id wins by a difference of 0.171 sec
>
> It is subtle by most people's terms, but I think static typing is still
> winning here.
>
> I don't have time to mess with this too much longer, but I'm going to
> try one more test. I'm going to create and array of a few thousand
> NSTextFields and I'm going to test it with only dynamic typing for 10
> runs and then and then recompile with static typing only and rerun 10
> times. That way caching isn't even in the picture.
>
> I'll post the results, good or bad. :)
>
> - Philip
>
>
>
> On Thursday, July 25, 2002, at 08:18 AM, jas. hook wrote:
>
>> *This message was transferred with a trial version of CommuniGate(tm)
>> Pro*
>> you should try the test again; but this time, time the statically typed
>> messaging first, and the dynamically typed messaging second.
>>
>> that first run might be delayed from nib loading effects or something
>> and the second run is benefitting from caching. or something along
>> those lines.
>>
>> nibs
> _______________________________________________
> 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.
_______________________________________________
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: Philip George <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.