[vlc-devel] Villain of the week

Rémi Denis-Courmont rem at videolan.org
Sat Sep 15 22:43:56 CEST 2007


	Hello,

We have countless msleep() with totally arbitrary "short" timeout in the tree. 
Many of these are causing useless CPU wakeups. That hurt the battery of 
portable devices, make VLC look crappy from Intel powertop, increase 
humanity's carbon dioxyde output and kill cute little pandas.

Clearly, msleep() is evil. Unfortunately, we don't have Power Rangers(tm) to 
remove it from the face of earth, so we're going to have to deal with it by 
hand (and keyboard). Keep in mind however that Busy Loop is Much More Evil, 
and Dead Lock is not too nice either.

Patches welcome.

Regards,

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list