Many unnecessary CPU wakeups per second
PowerTOP shows Tor waking up 10 times per second even when it’s doing nothing. This is bad for power usage on a laptop because it prevents the CPU from entering its deepest sleep states. It looks like the reason is the default TokenBucketRefillInterval of 100 msec (#3630 (moved)). Perhaps this logic can be refactored so that
refill_timer is only activated when there are buckets to be refilled.