def optimize_schedule(cluster, schedule, platform, sregistry, options):
    '\n    Rewrite the schedule for performance optimization.\n    '
    if options['cire-rotate']:
        schedule = _optimize_schedule_rotations(schedule, sregistry)
    schedule = _optimize_schedule_padding(cluster, schedule, platform)
    return schedule
Rewrite the schedule for performance optimization.
def optimize_schedule(cluster, schedule, platform, sregistry, options):
    '\n    \n    '
    if options['cire-rotate']:
        schedule = _optimize_schedule_rotations(schedule, sregistry)
    schedule = _optimize_schedule_padding(cluster, schedule, platform)
    return schedule