2 ms·
If I understand how Java implements the ArrayList, yeah, there's not much more overhead vs. an Array. I don't have the time right now, but I'd be interested if
by bane 12y ago
If I understand how Java implements the ArrayList, yeah, there's not much more overhead vs. an Array.
I don't have the time right now, but I'd be interested if you could whip up a quick simple profile like I did above for various generic Java collections like Map<T,T> and HashMap<T,T> and observe the time and memory consumption for each. I'd guess that the various Hash-like collections in Java will display a similar memory consumption to Perl's.