Does the dynamic array pre-allocate any memory?

I'm curious if the ~= on an array would be time sensitive. Would it make sense
to allocate memory myself and then reset the length?

class A
{
uint [] array;
:
  this()
  {
     array = new uint [10];
     array.length = 0;
  }
}

Reply via email to