Skip to content
Prev 7448 / 12125 Next

[R-pkg-devel] multithreading in packages

On Sat, 9 Oct 2021, Ivan Krylov wrote:

            
Well, the way I planned to use multitheading is to speedup processing of 
very large vectors, so one does not have to wait seconds for the command 
to return. Same could be done for many built-in R primitives.
G?bor Cs?rdi pointed out that R is compiled with mingw on Windows and 
has pthread support - something I did not know either.
I used parallel before, it is very nice, but R-level only. I am looking 
for something to speedup response of individual package functions so they 
themselves can be used of part of more complicated code.
Oh, this would never be run through CRAN tests, it is meant for data that 
is too big for CRAN.

I seem to remember that the Intel compiler used a different environmental 
variable, but it could be this was fixed since the last time I used it.

best

Vladimir Dergachev