Any loop is the prime suspect for optimization. I’ve seen a lot of naive implementation of something instead of using standard algorithms.