I work at the sound buffer level, mixing audio signals created by a collection of objects. Since I iterate over these objects in 44.1khz, efficiency is crucial. Is there any difference in the efficiency of iterating over an NSArray against an array of C pointers? What about NSMutableArray?
Is there any difference in the efficiency of iterating over NSArray against an array of C pointers?
Yes. Iterating directly over the C array will be faster.
. 44 100 , , , ( , , , , , , 44 100 ).
NSMutableArray?
Vs. NSArray? , .
NSFastEnumeration -countByEnumeratingWithState: objects: count: C NSArrays, NSMutableArrays , , -AtIndex: . , , .
Source: https://habr.com/ru/post/1736835/More articles:java: reading a text file and storing information in an array using a scanner class - javaCustom JComponent not showing up in custom JPanel - javaStop two identical requests from executing almost simultaneously? - ajaxHow to convert InnerText to InnerHtml in Webbrowser Control in C #? - c #How to create a meaningful dynamic property? - c #Save memory in Python. How to iterate over lines and save them with a 2 millionth file? - pythonASP.NET will forget the DLL in the bin directory - .neterror using rename function in PHP - phpSpeeding up internal joins and subqueries while limiting row size and table membership - sqlIs the memory size exceeded? - phpAll Articles