• 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: [CD] programmatically inserting MO in MOC gets slower with number of items II
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CD] programmatically inserting MO in MOC gets slower with number of items II


  • Subject: Re: [CD] programmatically inserting MO in MOC gets slower with number of items II
  • From: "Jordan Krushen" <email@hidden>
  • Date: Thu, 21 Sep 2006 10:28:37 -0700

On 9/21/06, Volker Runkel <email@hidden> wrote:

I  discovered the reason for the slow down: For each newly inserted
MO I set the value for a relationship (a "parent" MO that has one-to-
many relation to my inserted MOs). Without the call setValue:forKey
to connect my newly inserted MO with its "parent" the insertion is
rather fast.

Still this does not solve my problem though, since I need to
establish that relationship. Is there a faster possibility to create
a relationship or can I make it faster ? Or do I have to live with
the fact that the nth object is inserted in the object tree x times
slower then the first ?

Do you have a tight loop with an accumulation of autoreleased objects causing memory exhaustion? Does the Performance section in the CoreData Programming Guide help you at all?

What do the profiling tools like Shark and ObjectAlloc tell you?

Showing your code often helps, as well.

As djb says, "Profile. Don't speculate."

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


  • Follow-Ups:
    • Re: [CD] programmatically inserting MO in MOC gets slower with number of items II
      • From: Volker Runkel <email@hidden>
References: 
 >[CD] programmatically inserting MO in MOC gets slower with number of items (From: Volker Runkel <email@hidden>)
 >Re: [CD] programmatically inserting MO in MOC gets slower with number of items II (From: Volker Runkel <email@hidden>)

  • Prev by Date: Re: How to enable Undo only for subgroup of managed objects?
  • Next by Date: graphicsContextWithGraphicsPort
  • Previous by thread: Re: [CD] programmatically inserting MO in MOC gets slower with number of items II
  • Next by thread: Re: [CD] programmatically inserting MO in MOC gets slower with number of items II
  • Index(es):
    • Date
    • Thread