开发者

Improve Runtime.exec()

My program connects to external code via Runtime.exec开发者_如何学编程(). It is quite fast but the program really spends most time in the Runtime.exec() call (tested with profiler).

At this point there is no choice for a native library, so i am stuck with the Runtime.exec() code.

I'm wondering if there is any way to improve the performance of the external program call from Java or even from the OS that i am not aware of.


Are you sure you're not measuring cumulative time - i.e the exec call duration is the duration of the call itself + the time of the actual functionality you're invoking?

The reason I ask is that I've always find runtime.exec to be pretty performant.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜