Parallelizing a query with multiple “from” clauses
Consider a simplified version of Luke Hoban's LINQ ray tracervar Xs = Enumerable.Range(1, screenWidth);var Ys = Enumerable.Range(1, screenHeight); var sequentialQuery = from x in Xsfrom y in Ysselect new { X = x, Y = y, Color = TraceRay(x, y) }; If the screen width is much larger than the screen height, we would choose to para...