• 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: Custom zones...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom zones...


  • Subject: Re: Custom zones...
  • From: Jayson Adams <email@hidden>
  • Date: Tue, 10 Aug 2010 12:25:34 -0700

On Aug 10, 2010, at 6:55 AM, Bill Bumgarner wrote:

>
> On Aug 10, 2010, at 1:31 AM, Alastair Houghton wrote:
>
>> Sounds like a bug to me.  While zones are *discouraged* (they're very definitely an advanced topic and easily misused), I don't think they're actually deprecated.
>
> Their use is deprecated and should be documented as such.
>
> Zones were never very useful.   They seemed like they might be, but proved to be vastly more problematic than useful.
>
> (For those that don't know, the idea was to be able to create a zone for all of, say, a document's objects.  Then, when the document was closed, you destroy the zone without destroying the individual objects.)


More significantly, per-document zones group all of a document's object allocations together, so that if I have four documents open but am only working on one of them, the OS can easily page out the memory associated with the three documents I'm not working on.  I remember way back in the day when I updated to the first NeXTSTEP build that included zones, and suddenly my machine wasn't thrashing anymore.  Zones were useful, but, as you say, problematic, because if you make a mistake like allocating just one object for document A in document B's zone, you lose the benefits.

Best,


__jayson

Circus Ponies NoteBook - Organization for a Creative Mind
www.circusponies.com



_______________________________________________

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

References: 
 >Custom zones... (From: "charlie" <email@hidden>)
 >Re: Custom zones... (From: Alastair Houghton <email@hidden>)
 >Re: Custom zones... (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: [iPhone] UITableViewCell Height with UIWebView content
  • Next by Date: printPanelDidEnd:returnCode:contextInfo: variable isn't updated
  • Previous by thread: Re: Custom zones...
  • Next by thread: Re: Custom zones...
  • Index(es):
    • Date
    • Thread