I guess the force-inlining attribute is for making two copies of `next_inner` specialized for `longPeriod` (otherwise a hot loop will continuously test `longPeriod`). How about making an explicit macro to produce two copies and removing the attribute?