title: jquery autocomplete - slow reponse using remote datasource
body: <p>I'm using remote datasource which is a database query. Max results from the query is 1000.  I'm using the "term" parameter to filter my results, but the response is slow. It's actually not too bad on 2 characters, but the if you type one letter it's almost 3 seconds to return. I switch from YUI to jquery. I had this working much faster with YUI using the same datasource. The response was instant on 1 character.  Is there a better way to do this? Code below.</p>
  
  <pre><code>$(function() {
  
      $("#xContact").autocomplete({
          minLength: 1,
          source: "&lt;$strLower(HttpWebRoot)$&gt;data/employee_lookup.php",
          focus: function( event, ui ) {
              $( "#xContact" ).val( ui.item.label );
              return false;
          },
          select: function( event, ui ) {
              $( "#xContact" ).val( ui.item.label );
              return false;
          }
      })
      .data( "autocomplete" )._renderItem = function( ul, item ) {
          return $( "&lt;li&gt;&lt;/li&gt;" )
              .data( "item.autocomplete", item )
              .append( "&lt;a&gt;" + item.label + "&lt;br&gt;&lt;span style='font-size:0.8em'&gt;" + item.desc + "&lt;/span&gt;&lt;/a&gt;" )
              .appendTo( ul );
      };
  });
  </code></pre>