Fix for bug 6991, replace registrars timer tick
Registrar schedules an event every second to do fRoster-CheckSanity(). This uses 2.5% cpu on my machine when idle. Changing it to five seconds lowers it to 0.1% waddlesplash then pointed me to this bug which changes it to watch for team deletion and call fRoster->CheckSanity() As I know little in this area, it's mostly based on what LaunchDaemon does in MessageRecieved.
This commit is contained in:
@@ -96,7 +96,6 @@ enum {
|
||||
B_REG_GET_MESSAGE_RUNNER_INFO = 'rgri',
|
||||
|
||||
// internal registrar messages
|
||||
B_REG_ROSTER_SANITY_EVENT = 'rgir',
|
||||
B_REG_SHUTDOWN_FINISHED = 'rgsf',
|
||||
B_REG_ROSTER_DEVICE_RESCAN = 'rgrs',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user