Array length question
This question concerns optimization. Suppose I need the array length of an array A at two places in my code. Should I use the function a.length() in the two places, or is it faster to assign a local variable the value of a.length() and use it at the two places. 

By "faster" I mean in terms of running time. Moreover, i am talking asymptotically.
Array length question
===

This question concerns optimization. Suppose I need the array length of an array A at two places in my code. Should I use the function a.length() in the two places, or is it faster to assign a local variable the value of a.length() and use it at the two places. 

By "faster" I mean in terms of running time. Moreover, i am talking asymptotically.