Skip to content
Prev 8117 / 15075 Next

multicore package: collecting results

Thanks for this, it's now dead fast, as one could conceivably expect.
Simon's solution is astonishingly fast, however I had to reconstruct the factors and their levels which were (expectedly) lost during the c() operation. Unfortunately this eats up some fair amount of cpu, but on a 14 columns, ~2 million rows data frame it is still 2x faster than the elegant one line solution.

Some figures of performance:
utilisateur     syst?me      ?coul? 
    171.894      47.696      28.713
utilisateur     syst?me      ?coul? 
      0.412       0.280       0.708
...
utilisateur     syst?me      ?coul? 
      4.852       2.349       7.038
utilisateur     syst?me      ?coul? 
      9.791       5.411      15.039 

Thanks to both of you!

Vincent


Le 29 juin 2011 ? 21:48, Simon Urbanek a ?crit :