apache/spark — pull request #1461 by sryza (2014-07-17 08:27:21+00:00)
Title: SPARK-2553. CoGroupedRDD unnecessarily allocates a Tuple2 per dependency...

... per key

My humble opinion is that avoiding allocations in this performance-critical section is worth the extra code.