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

Is NSMutableArray slow?


  • Subject: Is NSMutableArray slow?
  • From: Chaz McGarvey <email@hidden>
  • Date: Wed, 1 Oct 2003 15:11:03 -0600

Hello:

If I had an operation that produced a lot of integers (>100000) quickly and I wanted to have the integers when the operation finished, would putting each integer into an NSNumber and then putting the NSNumber onto the end of an NSMutableArray for each integer going to be a bottleneck?

Would it be faster to just put the integers into a buffer and expand the buffer as needed with realloc()?

Thanks,
Chaz McGarvey
_______________________________________________
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: Is NSMutableArray slow?
      • From: Dietmar Planitzer <email@hidden>
    • Re: Is NSMutableArray slow?
      • From: Alex Lock <email@hidden>
  • Prev by Date: Launch Notification
  • Next by Date: TableView, mulitple TextFields on a row
  • Previous by thread: RE: Launch Notification
  • Next by thread: Re: Is NSMutableArray slow?
  • Index(es):
    • Date
    • Thread