title: How to merge 2 string array in Delphi
body: <p>I have 2 or more dynamic string array that fill with some huge data , i want to merge this 2 array to one array , i know i can do it with a for loop like this :</p>
  
  <pre><code>var
    Arr1, Arr2, MergedArr: Array of string;
    I: Integer;
  begin
    // Arr1:= 5000000 records
    // Arr2:= 5000000 records
  
    // Fill MergedArr by Arr1
    MergedArr:= Arr1;
  
    // Set length of MergedArr to length of ( Arra1 + Arr2 )+ 2
    SetLength(MergedArr, High(Arr1)+ High(Arr2)+2);
  
    // Add Arr2 to MergedArr
    for I := Low(Arr2)+1 to High(Arr2)+1 do
      MergedArr[High(Arr1)+ i]:= Arr2[i-1];
  end;
  </code></pre>
  
  <p>but it is slow on huge data , is there faster way like copy array memory data ?</p>