On Wed, Dec 1, 2010 at 2:34 AM, Ramil Farkhshatov <ra...@gmx.co.uk> wrote:
> it doesn't run match() on each item, that increases speed and
> reduces cpu usage. But conditions to run match() must be reconsidered:
> in this patch it is called once a second.


Would it make sense to call match() only when there is nothing left to
read on stdin (in your example, that would be when readstdin() returns
0)?

Reply via email to