Another item for your list - fix the 1 sec wakeups

Eric S. Raymond esr at thyrsus.com
Mon Jan 9 01:51:38 UTC 2017


Hal Murray <hmurray at megapathdsl.net>:
> The current code wakes up every second.  That's evil if you are trying to 
> save battery power.

Damn straight it is.

> It should be reasonable to get rid of the timer interrupts.  The general idea 
> is to look ahead and find the task that will actually do something and adjust 
> the timeout on the select to go off then.  It would probably take some 
> rearrangements of the code to split out the how-far-ahead idea.

Excellent point.  I have actually tried to think through an event-queue-based
design that gets woken up by a timer adjusted for the intended date of the
nearest future event. Thanks for the reminder, this does indeed belong on the
agenda.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


More information about the devel mailing list