Here I will provide a simple example of what I mean. Using ParallelSum with direct numbers is very fast as here
Module[{stp = 0.002},
ParallelSum[stp^2 Sin[x y]^2, {x, -3., 3., stp}, {y, -3., 3.,
stp}]] // AbsoluteTiming
{5.01413, 16.4759}
Now assume that I have a random list of {x, y} and would like to perform the ParallelSum form the list as follows:
the random list is in the form
Module[{stp = 0.002},
listF = Flatten[
ParallelTable[{x, y}, {x, -3., 3., stp}, {y, -3., 3., stp}], 1];]
and then
Module[{stp = 0.002},
Sum[stp^2 Sin[listF[[i, 1]] listF[[i, 2]]]^2, {i,
Length[listF]}]] // AbsoluteTiming
{15.2268, 16.4759}
as you can see it is 3 times slower now?!
Note: if I use ParallelSum in the last part instead of Sum it is even much more slower.