Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling R from Java - Faster alternative to RCaller

I tried RCaller 2.0 to call R functions from Java and I managed to make it work after a few tries. Integration was pretty easy but RCaller is kinda slow at runtime. I'm afraid that RCaller 2.0 won't be suitable for my application since I have to repeatedly call the same script thousands of times and the latency introduced by this library is unacceptable for my needs.

Is there a faster (in terms of run-time execution time) alternative for calling R scripts from Java?

like image 328
Marsellus Wallace Avatar asked Sep 15 '11 18:09

Marsellus Wallace


1 Answers

Rcaller has many performance improvements that came with the version 2.1. It now supports passing commands to R in a loop using a single R process. That is, there is no more system calls after the initializing process.

like image 157
jbytecode Avatar answered Sep 30 '22 02:09

jbytecode