What is the most efficient way to copy an array of 1000 ints from one array to another in objective C?
This will be running on an iphone within some drawing code so its important to be as efficient as possible.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if the concern is efficiency, I’m assuming this is a C array of ints. If so, you can use memcpy().
For example:
Hope that helps.