You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the input is first split into chunks of length cl, the option mc.preschedule=F has no effect (we need to wait for the chunk to finish before sending the next chunk, so workers remain idle until the longest job is done). I don't think it can easily be fixed without introducing some communication with the child processes, but it would be useful to explain this in the documentation. I'm not too familiar with the other parallel functions called by pblapply, but if they have similar options, the same would apply to them.
Minimum reprex where setting prescheduling to FALSE should cut the runtime by almost 2. It works well with mclapply but not pblapply.
Because the input is first split into chunks of length
cl
, the optionmc.preschedule=F
has no effect (we need to wait for the chunk to finish before sending the next chunk, so workers remain idle until the longest job is done). I don't think it can easily be fixed without introducing some communication with the child processes, but it would be useful to explain this in the documentation. I'm not too familiar with the other parallel functions called by pblapply, but if they have similar options, the same would apply to them.Minimum reprex where setting prescheduling to FALSE should cut the runtime by almost 2. It works well with mclapply but not pblapply.
The text was updated successfully, but these errors were encountered: