dirauth: Move authdir_mode_v3() to module
[tor.git] / changes / ticket25376_25762
blobb3ebf56d3bd460dfadfa1d8ed69895faf25be5ed
1   o Major feature (main loop, CPU usage):
2     - Previously, tor would enable at startup all possible main loop event
3       regardless if it needed them. For instance, directory authorities
4       callbacks were fired up even for client only. We have now refactored this
5       whole interface to only enable the appropriate callbacks depending on what
6       are tor roles (client only, relay, hidden service, etc.). Furthermore,
7       these events now depend on DisableNetwork or the hibernation state in
8       order to enable them. This is a big step towards reducing client CPU usage
9       by reducing the amount of wake ups the daemon does. Closes ticket 25376
10       and 25762.