library(data.table) setDTthreads(1L) DoSomething <- function(row) someCalculation <- row[["v1"]] + 1 allIterations <- data.table(v1 = runif(1e5), v2 = runif(1e5)) system.time(for (r in 1:nrow(allIterations)) DoSomething(allIterations[r, ])) Member Author jangorecki commented Ma...