search for: foreev

Displaying 1 result from an estimated 1 matches for "foreev".

Did you mean: forcev
2013 Jan 21
2
foreach takes foreever?
I started to look at ways to improve times of certain very parallel tasks and thought that foreach should be a valid candidate to do the job. So, i opened foreach tutorial by Steve Weston and started timing examples from it. First example from tutorial is  >system.time(for(i in 1:100000) sqrt(i))    user  system elapsed     0.06    0.00    0.06  > system.time(foreach(i=1:100000) %do%