3 ms·
> especially in languages like Java, JavaScript, etc Not only there is sequential array in both the language, it is very often used. Things like iterating the
by YetAnotherNick 3y ago
> especially in languages like Java, JavaScript, etc
Not only there is sequential array in both the language, it is very often used. Things like iterating the array is one of the most common operation and is almost always memory bandwidth bound even for interpreted language.
- logicchains 3y ago>Not only there is sequential array in both the language, it is very often used In Java only primitive arrays are memory-efficient for iteration; ArrayLists are not because every element is boxed, so even when iterating sequentially a lookup of some random memory address is needed for every element.