perf: Use jump_labels to optimize the scheduler hooks