-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possibly improve performance of json API #3
Comments
Thanks for this measurement. I did not look at all at performance so far. The function you used is from the high-level API, which is currently not more then a prove of concept. The timing you took contains at least this elements:
But I agree, that it is very slow. In any case the low-level function used ( "object" ) to execute R functions will have the same performance if used with passing parameters as so called "inline json". So the way to improve performance, This would then give you a session key for the data stored as a data.frame on the server. To "automate" this, would be one of the functions of a high-level API. As the purpose of the low-level interface is supposed to be a thin wrapper on top of the HTTP OpenCPU API, the performance problems cannot be addressed there. It requires Json, and sends it as-is over the net to the server. On general one remark, how IMHO the OpenCPU server is ment to be used. So you would write R code (as one or more specific functions, which inside do the work of the analysis). |
Json parsing and generating on the opencpu side should be pretty fast. |
(Replace sever-url with your local opencpu sever url.)
Here is the output at my machine:
This kind of performance requires some investigation. One suspect for time waste is the need to pass the whole dataset as a json string.
The text was updated successfully, but these errors were encountered: