On Apr 1, 2009, at 7:17 AM, Vijay Kanse wrote:

is This a behavior of address book for more than 1000 records ? if
it is,
how can i fix it?


You can't. As you've discovered, the AddressBook framework is rather
slow when it comes to large batch operations, and has been since they
switched from Metakit to CoreData in Leopard. You'll just have to wait
for it to finish, because I will be very surprised if the framework
turns out to be thread-safe.

You can create a new AB on a background thread (e.g. not the default sharedAddressBook) and save in the background to avoid blocking the main thread.

If you have performance issues, you should file them with bugeport.apple.com . In situations like this, Shark traces are very helpful.

- Ben



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to