• 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: [Foo new] vs [[Foo alloc] init]:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Foo new] vs [[Foo alloc] init]:


  • Subject: Re: [Foo new] vs [[Foo alloc] init]:
  • From: Keith Duncan <email@hidden>
  • Date: Sun, 17 Feb 2008 00:49:18 +0000

There are a couple of points I want to comment on:

I'm afraid I don't understand that assertion at all. What does this have to do with binary compatibility? Why did it *not* break compatibility in the move from 10.4 (in which new does not invoke alloc by default) to 10.5 (in which it does)?


Because this is an implementation detail.

So in Leopard, as you say zones have fallen out of recommended practice

I'm guessing, but perhaps the assumption made on Apple's part is that if you are linking against the 10.5 SDK then your are more then likely using GC and zones are irrelevant? AFAIF zones can be used to improve alloc/dealloc performance, i.e they can be setup such that the cost of dealloc'ing a large group of temporary objects is very low by simply removing references to their heap section allowing immediate reuse without the dealloc tear down cost. Correct me if I'm wrong.


Keith
_______________________________________________

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: [Foo new] vs [[Foo alloc] init]:
      • From: Bill Bumgarner <email@hidden>
References: 
 >Re: [Foo new] vs [[Foo alloc] init]: (From: Jonathan Dann <email@hidden>)

  • Prev by Date: How to capture a selected rectangle of desktop
  • Next by Date: Re: Xcode 2.5, ppc, link errors
  • Previous by thread: Re: [Foo new] vs [[Foo alloc] init]:
  • Next by thread: Re: [Foo new] vs [[Foo alloc] init]:
  • Index(es):
    • Date
    • Thread