841eeb158e
Previously the use of `range(start,stop,step)` caused an allocation. Replace with while loop. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>