You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/datatable-benchmarking.Rmd
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -122,10 +122,12 @@ This is very valid. The smaller time measurement is the relatively bigger noise
122
122
123
123
One of the main factor that is likely to impact timings is number of threads in your machine. In recent versions of `data.table` some of the functions has been parallelized.
124
124
You can control how much threads you want to use with `setDTthreads`.
125
+
Starting from 1.12.2 `data.table` uses only half of available logical cores. Unless your environment is sharing resources with other heavy processes, you should get speed-up when setting to use all available cores.
125
126
126
127
```r
127
-
setDTthreads(0) # use all available cores (default)
128
-
getDTthreads() # check how many cores are currently used
128
+
setDTthreads(NULL) # use half of available cores
129
+
setDTthreads(0) # use all available cores
130
+
getDTthreads() # check how many cores is set
129
131
```
130
132
131
133
Keep in mind that using `parallel` R package together with `data.table` will force `data.table` to use only single core. Thus it is recommended to verify cores utilization in resource monitoring tools, for example `htop`.
0 commit comments