[vlc-devel] Re: vlc: svn commit r20432 (pdherbemont)

Rémi Denis-Courmont rem at videolan.org
Thu Jun 7 16:52:09 CEST 2007


Le jeudi 7 juin 2007, Pierre d'Herbemont a écrit :
> About polling I am not convinced that it is a good solution. Most of
> the time you end up in wasting CPU time. (especially when polling for
> an event that never occurs). Thus I really think it is fair to
> consider a position event.

Polling is bad... when you cannot predict when the event occurs.

Performance position is likely enough to advance visibly every second 
that it may be reasonable to poll once or twice per sec, rather than 
use an event. Note that the input/demux stuff will cause a lot more 
wakeups than 1 or 2/sec while performing in any case, so the battery 
drain is not very significant.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070607/15cfd0be/attachment.sig>


More information about the vlc-devel mailing list