This will parallelize parts of two functions in Mantaflow.
On my machine the attached test file takes 20.4s to bake with the patch applied compared to 26.3s before the patch (1.54x speedup).
Cpu-time before was 178s and after 164s.
|After|
|{F10236069, width=100%}|
|Before:|
|{F10234068, width=100%}|
{F10234078}