Can we vectorize the computations in get Segments () to avoid the for loop? Given that we are looping over the number of objects we see, not the 360 range values, does vectorizing significantly improve the performance? Think about how often we call get Segments () - once for each look in each log file.