views:

119

answers:

1

I'm creating an application for iPhone which needs to handle large data. So, I would like to know which one will be better to use : C++ Vectors or ObjectiveC's NSMutableArray? Which one will be faster to access elements, delete elements, add elements etc. Can some one guide me please?

+2  A: 

Both will work similarly as far as performance goes. If you're storing Objective-C objects, you should use an NSMutableArray, but if you're storing anything else and need top performance, you may want to use a std::vector.

John Calsbeek
Thanks for the information.
Satyam svv