Avoid cost of cancelAll
authorChad Parry <cparry@fb.com>
Tue, 8 Dec 2015 22:37:00 +0000 (14:37 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Tue, 8 Dec 2015 23:20:21 +0000 (15:20 -0800)
commit750d49c8a83cbf3f99b0fc576b8ea08eeced4688
tree38f7fb6d04f62479c28f571d2b5d558a87a0b051
parent5ff51e977e67cf7759d048b5d928d6ec85186705
Avoid cost of cancelAll

Summary:
This is an experimental diff that may improve the performance of `HHWheelTimer::cancelAll`. If there are no timers to cancel, then it can bail early.

Since perflab is unlikely to be conclusive, and since this diff looks like a strict improvement, I'll proceed with landing it.

Reviewed By: djwatson

Differential Revision: D2735297

fb-gh-sync-id: 9f5a811ee6d9fa9434576e9abd3ef3443a7579b7
folly/io/async/HHWheelTimer.cpp