Sunday, February 14, 2010

Programmer - Does it worth waiting a couple of milliseconds on a TextChanged event?

Programmer Question

I have a textfield for a filter customers action on a mobile device.
I am wondering if I should wait for a few milliseconds before launching my code when the user typed in less then 3 chars, and only execute the code if the text is longer or equal than 3 chars.



The executed code takes longer(sql like syntax on a larger database), and the user sees hang-outs on the listview.



What do you think?

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails