apache/spark — pull request #3593 by aarondav (2014-12-04 00:29:09+00:00)
Title: [SQL] Minor: Avoid calling Seq#size in a loop

Just found this instance while doing some jstack-based profiling of a Spark SQL job. It is very unlikely that this is causing much of a perf issue anywhere, but it is unnecessarily suboptimal.