multicore with plyr, MC

前端 未结 2 1053
旧巷少年郎
旧巷少年郎 2021-01-12 18:14

Hi I am trying to use ddply in the plyr library in R, with the MC package. It doesn\'t seem to be speeding up the computation. This

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-12 18:40

    The mean function operates too quickly relative to the communication costs required to distribute the split sections to each core and retrieve the results.

    This is a common "problem" people run into with distributed computing. They expect it to make everything run faster because they forget there are costs (communication between the nodes) as well as benefits (using multiple cores).

    Something specific to parallel processing in plyr: only the function is run on multiple cores. The splitting and combining still is still done on a single core, so the function you're applying would have to be very computationally intensive to see a benefit when using plyr functions in parallel.

提交回复
热议问题