• 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: Removing Observers eats up memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing Observers eats up memory


  • Subject: Re: Removing Observers eats up memory
  • From: Markus Spoettl <email@hidden>
  • Date: Mon, 25 Jan 2016 22:27:13 +0100

On 25/01/16 17:31, Gary L. Wade wrote:
You should look more at your design. Having that many objects being
unobserved and reobserved (your word although in the context of new objects)
reminds me of what I've called a genocidal refresh, an antipattern that can
be fixed by only refreshing (or in your case observing) the things actually
changed; in your case that may be only the items in the array that were added
or removed.

This no doubt would be the "right" way of doing it, but it would not address the issue at hand because the observations have to be removed when the view controller goes away (all of them at the same time), and that's where the problem happens.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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: 
 >Removing Observers eats up memory (From: Markus Spoettl <email@hidden>)
 >Re: Removing Observers eats up memory (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Re: Removing Observers eats up memory
  • Next by Date: Re: Removing Observers eats up memory
  • Previous by thread: Re: Removing Observers eats up memory
  • Next by thread: Re: Removing Observers eats up memory
  • Index(es):
    • Date
    • Thread