bitmap search
Summary: Use a bitmap search to find the next wheel timer tick instead of a linear scan. Need to store the current bitmap bit in the individual timeout to support cancellation. Given the WHEEL_SIZE of 256, this will reduce to 4 ffsl/cmov instructions. Reviewed By: yfeldblum Differential Revision: D3637116 fbshipit-source-id: 1a37e19a5342604ec81735eaf85b72b6f673ea1e
Showing
Please register or sign in to comment