Adding new cells to a schedule that is almost full can take a while

Description

We have noticed that when using a long super fame, 101 slots, and when the schedule is rather full > ~80%, it can take a while to add new cells. This appears to be because the function sixtop_candidateAddCellList() uses a random number generator to generate a cell list and the probability that it will select an available cell goes down as the cell usage goes up.

Perhaps the random number generated could be limited to be within the range of {0: number of available cells-1} and then the number generated used as an index into the set of available cells?

Environment

None

Status

Assignee

Unassigned

Reporter

john rubis

Labels

None

Story Points

None

Priority

Minor