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
2010-05-07 07:44:26
Thanks for the information.
Satyam svv
2010-05-08 08:47:09