More specifically, the underlying array size starts at 16 elements and doubles whenever it grows beyond it's underlying size. (This might change when the array gets large, but I haven't looked at that code recently, so I forget the details.)
Cheers, Kevin On Sunday, September 7, 2014, John Myles White <[email protected]> wrote: > It gets expanded in chunks. > > — John > > On Sep 7, 2014, at 10:15 AM, Steven Sagaert <[email protected] > <javascript:;>> wrote: > > > When you start with an empty array and grow it one element at a time > with push!, does the underlying array memory block get copied & expanded by > one or in larger chunks (like ArrayList in Java)? > >
