Increase performance for main loop
Submitted by Frediano Ziglio
Created attachment 319699 First patch
Trying to understand why glib loop was doing too much iterations came out that code is waking up the loop too much. Basically many poll record change cause wake_up event to be triggered. Also the event is not cleared the first time causing other iterations. I wrote too patch which are working fine on my system.
Patch 319699, "First patch":