anufrievroman / freepaths

Monte Carlo simulator of phonon and heat transport in nanostructures
https://anufrievroman.gitbook.io/freepaths
Other
16 stars 4 forks source link

Multiprocessing improvement #12

Open phigas opened 9 months ago

phigas commented 9 months ago

Currently the Multiprocessing works by assigning the phonons to the subprocesses before they are started which results in some finishing before others. Ideally this should be handled by a worker pool which assigns the phonons to the subprocesses while they run.

anufrievroman commented 8 months ago

This is true, but it appears that it's only a problem for a small number of phonons. For a sufficiently large number, all workers will take roughly the same time, so that the benefit of this optimization would be rather small.