advice for tailing a file
Scott Wiersdorf
scott at ipartner.net
Tue Dec 15 14:34:39 CET 2015
On Tue, Dec 15, 2015 at 07:25:22PM +1100, Daniel Carosone wrote:
> Recommend trying to read more than one line from the pipe per wakeup,
> possibly by wrapping in AnyEvent::Handle, which implements just the
> buffering you need for this.
>
> That will probably obviate the need for the throttle.
Yes, I'll give that a try too. 3/4 of my CPU consumption is in the "do
something with this" but a bare read loop is still taking too much CPU
imo because of the heavy polling here (I assume). Thanks.
Scott
--
Scott Wiersdorf
scott at ipartner.net
More information about the anyevent
mailing list