| pin_workers | R Documentation |
Best-effort worker pinning to improve cache locality and reduce cross-core migration. Currently supported on Linux only.
pin_workers(pool = NULL, strategy = c("spread", "compact"), cores = NULL)
pool |
Optional shard_pool. Defaults to current pool. |
strategy |
"spread" assigns worker i -> core i mod ncores. "compact" assigns workers to the first cores. |
cores |
Optional integer vector of available cores (0-based). If NULL, uses 0:(detectCores()-1). |
Invisibly, a logical vector per worker indicating success.
affinity_supported()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.