title: Working With Very Large String Arrays
body: <p>There is a array of about 50.000 words. indexing takes a lot of time. Sometimes it stops. If there are about 1.000 words, no problem.</p>
  
  <p>Arrays in another class.</p>
  
  <p>I tried these:</p>
  
  <pre><code>let arr: [String] = ["str1", "str2", ...]
  </code></pre>
  
  <p>or</p>
  
  <pre><code>let arr: [String] = [
  
  "str1",
  
  "str2",
  
  ...]
  </code></pre>
  
  <p>or</p>
  
  <pre><code>let arr1: [String] = ["str1", "str2", ..., "str9999"]
  
  let arr2: [String] = ["str10000", "str10001", ..., "str19999"]
  
  ...
  
  let arr5: [String] = ["str40000", "str40001", ..., "str50000"]
  </code></pre>
  
  <p>What is the best way to work with large arrays? Thank you in advance for your suggestions.</p>