title: Does native array.js make me slower
body: <p>So, I have ~600 companies in <code>&lt;select&gt;</code> list  that is "widgetized" with jQueryUI autocomplete combobox. It's a slowest part of my page, when I try to find string for any time except first one.</p>
  
  <p>I've start to profile JS perfomance with Chrome developer tools and find that the most awful part is <code>sort</code> method that browser call out of <code>native array.js</code>.</p>
  
  <p>That is the picture how I've got idea about it:</p>
  
  <p><a href="https://i.stack.imgur.com/Qe7dE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qe7dE.png" alt="My code profiling"></a></p>
  
  <p>~11,5 seconds to render out dropdown list on last selected input value? What should I do and what kind of example to provide my experience? Help me to improve that terrible thing!</p>
  
  <p><strong>UPD</strong>:</p>
  
  <p>It's looks like "each time I've opening dropdown list it handle something one more time and make it twice, but I'm not sure that it's a sorting or something else except native Array.js method sort with <code>g.nodeType.g.documentLement.l</code> function:</p>
  
  <p><a href="https://i.stack.imgur.com/cP1JD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cP1JD.png" alt="g.nodeType.g.documentLement.l example"></a></p>
  
  <p><strong>UPD</strong>:
  My browser is Chrome 60.0.3112.90 and JavaScript V8 6.0.286.52
  I will try non-minified jquery-1.12.4.js to find out why does there is idle moments appear between compareDocumentPosition property calling inside jQuery.</p>