Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
lots of unnecessary cpu wakeups #81
It seems that when offlineimap is sleeping between syncs, it's being woken up every 50ms for some reason (strace shows repeated
Yes, at least in python2, that is a problem. The thing is, that our main thread needs to be able to be interrupted by signals such as Ctrl-C.
This is function threadutils.py:exitnotifymonitorloop
Apparently this was fixed in python 3.2 so, we might be able to improve this in a Python3 world.
Thank you much for your input spaetz!
This is a hugly hack I wouldn't expect to solve all issues while it could effectively improve things a bit.
EDIT: forgot to say that if I get positive feedback soon, I'll merge it for the next stable I intend before April.