• 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: Optimizing NSMutableDictionary Speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Optimizing NSMutableDictionary Speed


  • Subject: Re: Optimizing NSMutableDictionary Speed
  • From: Esteban Uribe <email@hidden>
  • Date: Fri, 11 Apr 2003 09:29:55 -0700

Hi,

On Friday, April 11, 2003, at 08:20AM, John Nairn <email@hidden> wrote:

>I am thinking of converting an application to Cocoa that may deal with
>a large number of records. The data model fits logically into an
>NSMutableDictionary with record IDs (which are unique) as keys. The
>concern is how NSMutableDictionary will respond to frequent searching
>by key? Typically files will have thousands of records; and an extreme
>file might have a million records. Use of the application will require
>frequent location of records by key.

I'm not exactly sure how to go about optimizing NSMutableDictionary usage,
but I think it's reasonable to assume that you'd probably be better off
using some kind of database (mysql, postgress, sql-lite), since you will be dealing
with thousands if not millions of records.

It seems like NSMutableDictionary would be loaded into memory, so you'd have
to either split it into segments, or have lots and lots of memory or swap space.

The link <http://cocoa.mamasam.com/MACOSXDEV/2002/04/1/30793.php> has some
info on these database options, and objective c wrappers to them.

-Esteban
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Text with white background in striped TableView
  • Next by Date: Re: WebCore revisted
  • Previous by thread: Re: Optimizing NSMutableDictionary Speed
  • Next by thread: Newbie question
  • Index(es):
    • Date
    • Thread