Skip to content

Commit 1cda608

Browse files
committed
reflect change of cores to 50 pct
1 parent 213295c commit 1cda608

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vignettes/datatable-benchmarking.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ This is very valid. The smaller time measurement is the relatively bigger noise
122122

123123
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.
124124
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.
125126

126127
```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
129131
```
130132

131133
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

Comments
 (0)