On Wed, Dec 1, 2010 at 12:12 PM, Ramil Farkhshatov <ra...@gmx.co.uk> wrote: > Christophe-Marie Duquesne <chm.duque...@gmail.com> wrote: > If dmenu starts matching after exhausting of data then it will not > differ in behaviour from synchronous vanilla version.
Except it won't block if it does not read EOF, which was more or less the initial goal, wasn't it? This way, if data arrives on stdin, it is read as fast as possible (blocking the user from typing stuff meanwhile, but minimizing the time needed for reading) and if there is no data left to read, dmenu will read X events. If there is not too much data to read (in a case like a google_suggest script, which feeds 10 lines to stdin at each stroke) this should feel instantaneous.