Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Objective-C 2.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C 2.0



On Aug 10, 2006, at 01:04, Marcel Weiher wrote:
Is garbage collection faster/slower/the same speed as malloc/free? We introduceoracular memory management, an approach that lets us answer this question by measuring unaltered Java programs as if they used malloc and free. The result: a good GC can match the performance of a good allocator, but it takes 3X-5X more space.

Well, this probably dosn't apply either ;-) We don't compare speed between GC and malloc/free but between GC and RC/Foundation. The latter has significant processing overhead on its own, which is likely (again, we can't say till we try ;-) to exceed that of the GC.
If a good GC is as fast as malloc/free you can assume it to be three times as fast as Foundation RC ;-) So you get three times the performance for three times the RAM ;-)


Anyway, I suppose the point is that memory consumption is bound to grow. Though I really wonder how big the real world effect will be.
Maybe they really keep supporting RC for serious apps and suggest GC for quick/small hacks. Though I doubt RC will survive 10.7 ;-)


Greets,
  Helge

PS: great to discuss useless stuff again, thanks Apple ;-)
--
Helge Hess
http://docs.opengroupware.org/Members/helge/



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Objective-C 2.0 (From: "Philippe C.D. Robert" <email@hidden>)
 >Re: Objective-C 2.0 (From: Dietmar Planitzer <email@hidden>)
 >Re: Objective-C 2.0 (From: Greg Hurrell <email@hidden>)
 >Re: Objective-C 2.0 (From: Dietmar Planitzer <email@hidden>)
 >Re: Objective-C 2.0 (From: stephen white <email@hidden>)
 >Re: Objective-C 2.0 (From: Helge Hess <email@hidden>)
 >Re: Objective-C 2.0 (From: Greg Hurrell <email@hidden>)
 >Re: Objective-C 2.0 (From: Marcel Weiher <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.