How efficient are large arrays for efficiency?

I am going to store large arrays in my application. The largest will be 100,000 items. But one can settle for 1000. I have the option to export them to csv files. Their presence in the application will be more accurate. How many arrays of this size affect the efficiency and performance of a phone? Suggestions and thoughts are appreciated.



source to share

1 answer

If you only store 100,000 numbers (as implied in the .csv files) it will not affect your performance, as in the case of int it will only be 400KB, which is quite a small amount of memory for modern Android phones.

PS I recommend that you first implement your application in some way, and then when you see what problems arise, be it memory consumption, battery drain or something else, optimize it.



All Articles