Re: Is NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext: this slow?
Re: Is NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext: this slow?
- Subject: Re: Is NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext: this slow?
- From: Javigator <email@hidden>
- Date: Fri, 15 Jul 2005 12:21:24 +0200
Am 15. Jul 2005 um 11:50 schrieb mmalcolm crawford:
On Jul 15, 2005, at 2:36 AM, Javigator wrote:
Tearing my code appart seems to point in a direction that the
NSArrayController/bound NSTableView seems to be some kind of
performance hog. Because when executing the object creation while
pointing the NSArrayController (and bound table) to another entry
in the master/detail structure the objects are created in less
than 1 second (performance like I expected).
But when the currently updating master/detail entities are active
in the controller and displaying in the table, it takes awefully
long (>40 sec. for 600 obj.).
I would suggest switching off automaticallyPreparesContent for the
duration of the insertion.
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSObjectController.html#//
apple_ref/doc/uid/20002044-BBCEJEDI>
mmalc
Tried that, doesn't seem to have an effect for my app. There's
something else braking the performance down. Have to look closely at
the overridden controller code, I guess. Maybe some notification
overhead or something like this.
Anyway, thanks for this handy hint!
Best regards,
Joern Janoschek.
_______________________________________________
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