I just started playing around with the auto-completion
(text_field_with_auto_complete) stuff, and it is very nice, but it
seems a little slow-- it takes about 1 second for the list to appear
or for an update. The development log says the the SQL query
completes in 0.01 s, so I'm wondering if there's some built in delay
in the ruby/javascript code. Is there some way to configure it to be
faster? Or is the delay in WEBrick?
There's a (by default) 0.4s delay in the JavaScript to know that you've stopped typing. Then there's the round trip to the server (which sounds like it's local in your case), but you still might have a bit of rendering time to include which might be significant if the list of completions is long.
That made things faster (though not 4 times faster, because of the
server
response time). The downside is that now every keystroke initiates a
request
for an update, which might not scale so well if there are lots of
users.