Increase performance for main loop
Submitted by Frediano Ziglio
Link to original bug (#761102)
Description
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":
0001-do-not-wake-up-main-loop-adding-if-change-is-from-sa.patch