• 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
NSMutableArray performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableArray performance


  • Subject: NSMutableArray performance
  • From: kubernan <email@hidden>
  • Date: Mon, 7 Oct 2002 23:21:24 +0200

Hello,

I decided to rewrite my old C++ application in full Objective-C.
This application used extensively arrays of double values and makes
many computations.
I decided to replace all my arrays by NSMutableArray and all becomes
very slow.
The sequence execution between the C++ and Objective-C is the same
(executing the code in debug mode, step by step), so i can
think there is no dead code.
The mutable arrays can contain between 1 and 3 double value objects only but
my programm makes lots of such thing :

double aValueToCompute = [[myArray objectAtIndex:index] doubleValue] * [[theSecondArray objectAtIndex:index] doubleValue];

Is there somewhere a topic about NSMutableArray performances ?
Should i stay with simple C array ?

Thx.
K.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSMutableArray performance
      • From: Ondra Cada <email@hidden>
    • Re: NSMutableArray performance
      • From: David Remahl <email@hidden>
    • Re: NSMutableArray performance
      • From: Arthur Clemens <email@hidden>
    • Re: NSMutableArray performance
      • From: "Brian E. Howard" <email@hidden>
    • Re: NSMutableArray performance
      • From: Nat! <email@hidden>
  • Prev by Date: Re: NSDragOperationDelete
  • Next by Date: "greedy" NSOpenGLViews
  • Previous by thread: Help with understanding distributed objects and UI?
  • Next by thread: Re: NSMutableArray performance
  • Index(es):
    • Date
    • Thread