Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现 opencpu 比 R 中调用的相应 R 函数慢得多。原因之一可能是我在服务器和客户端之间来回交换数据,使用:
ocpu.rpc()
每次用户提供输入并在操作完成时拉回客户端上的数据时。
可以连续调用:
ocpu.call()
导致显着加速?
在使用两者进行了大量测试之后,似乎没有什么区别。但至少它允许对请求的不同部分进行计时:函数的执行和结果的检索更容易。