How to write efficient nested functions for parallelization?
问题 I have a dataframe with two grouping variables class and group . For each class, I have a plotting task per group. Mostly, I have 2 levels per class and 500 levels per group . I'm using parallel package for parallelization and mclapply function for the iteration through class and group levels. I'm wondering which is the best way to write my iterations. I think I have two options: Run parallelization for class variable. Run parallelization for group variable. My computer has 3 cores working