Too big Array - Android

0

What problems could I face in handling many arrays ?

When I say arrays I mean at least 25 , each containing 1000 index.

  • Performance :

Will the performance of my application be affected? I say for example, when loading activity or changing a data from an index.

  • Correct form :

In this case would it be better to use an Arraylist ? If so, why?

    
asked by anonymous 04.04.2018 / 05:47

1 answer

4

In this order of magnitude (1000), you do not have to worry. If it were a million elements ... but do not make premature optimizations. Test, profile and then draw your conclusions.

The container issue depends on what you are going to do with the data, not pure performance. Will you access the data in a random (by index) or sequential way? Will the array have to resize? Each container meets a different demand.

    
04.04.2018 / 07:22