Skip to contents

geoarrowrs calls ga_set_thread_pool() on load and whenever you change the option. With 0, it returns the parallel paths to rayon's own default, which is one thread per core.

Usage

ga_set_thread_pool(n)

Arguments

n

the most threads to use, or 0 for rayon's default

Value

n, invisibly

Examples

# hold the parallel paths to two threads
ga_set_thread_pool(2)
#> [1] 2

# and back to one per core
ga_set_thread_pool(0)
#> [1] 0