You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I call r-script a lot of times (hundreds). in my node script.
Each call of r-script takes 1s whereas nothing is performed in the R script (just gives back a number without any computation).
In my node script, I put a "console.log(new Date());" before AND after calling r-script -> this is how I evaluated duration of r-script call.
Do you know how to make things faster ?
Thank you in advance
Kind regards
XAvier
The text was updated successfully, but these errors were encountered:
I have also noted that calling R from Node.js involves quite some overhead.
I don't know how to speed up the R call.
Since you are calling R hundreds of times, it would be beneficial if R would not be terminated between the separate calls. However, I have no idea how to realize this quickly in the given Node.js environment. You would need some kind of R demon or R server running all the time, and then you would pass your scripts to it. This would at least save you the constant starting / terminating of RScript.
What you maybe can do: I understand that you loop through "something", resulting in hundreds of calls to R. Can you move that loop to R directly?
Hi,
I call r-script a lot of times (hundreds). in my node script.
Each call of r-script takes 1s whereas nothing is performed in the R script (just gives back a number without any computation).
In my node script, I put a "console.log(new Date());" before AND after calling r-script -> this is how I evaluated duration of r-script call.
Do you know how to make things faster ?
Thank you in advance
Kind regards
XAvier
The text was updated successfully, but these errors were encountered: