for (FutureLoad fl : Iterables.limit(lp.predict(worksheet, computer, slot.start, slot.end),100)) {
timeline.insert(fl.startTime, fl.startTime+fl.duration, fl.numExecutors);
}
}
Long x = timeline.fit(slot.start, slot.duration, computer.countExecutors()-e.getValue());
// if no suitable range was found in [slot.start,slot.end), slot.end would be a good approximation
if (x==null) x = slot.end;
slot = slot.shiftTo(x);
}