News for hackers. Stuff that matters.
Re:Search for PHP by jayphelps on Sunday October 24, 2010 @11:24PM (#1828351)
Here's another: you're searching on any keyup which creates lots of overhead. Google's implementation is more complex. It appears they search immediately as you type the first few characters on each keyup/down then if the word goes over a few characters it switches to querying every couple seconds, or until you hit the spacebar. It also seems like they have another timer if you pause after a second or two.

If it's just you using this, I would say don't give a crap. But if you plan to allow others to use it and it gains a userbase at all you might consider a similar approach for obvious reasons.

Cheers!

Re:Search for PHP by boyter on Sunday October 24, 2010 @11:27PM (#1828359)
I was looking into this but havent yet been able to make it work smoothly. Since you have raised it I will focus on getting it working.

I have quite a list of things to improve now.