title: Jquery autocomplete on large array
body: <p>I am using Jquery autocomplete with local array of size ~5000, every word is ~10 chars.
  I am initializing the object like this:</p>
  
  <pre><code>.autocomplete({matchContains: true, minLength: 3, delay: 700, source: array1, max: 10, highlight: true })
  </code></pre>
  
  <p>The problem is, that when I start to type, it takes a lot of time (sometime crashes the browser) until the result is displayed.</p>
  
  <p>What can I do?</p>
  
  <p>Thanks</p>