For example, would a full int[50][8] use more resources (RAM and CPU) than 8 full int[50] arrays?
Share
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.
In the first case you have one array object pointing to fifty array objects holding 8 int’s. So 1 + 50 array objects + fifty pointers in the first array object.
In the second case you have one array object pointing to 8 array objects holding 50 int’s. So 1 + 8 array objects + eight pointers in the first array object. Holding the int’s is a wash.
There is not a good way to evaluate CPU usage for this.