If your rows are not more than 8000 or array length is less than 8000 then Linq is not going to be a game changer with respect to robot execution time. I think you previously asked to have a linq query to do this.
Check this thread. Except the first part everything else mentioned in this solution will solve your problem.