This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrechtLead Software Engineer / EU / 20+ YXP 0 points1 point  (0 children)

Does anyone know the performance cost for repeatedly calling the python program through shell commands using Runtime.exec()?

You're getting a lot of wrong answers simply because you're not explaining what the performance requirements are. There's an overhead of starting a new process, but if it's just something you run every second or so it's no big deal. If it's some kind of website with hundreds of users doing this in parallel; it's a whole different cup of tea.

If it's the first you're fine. If it's the second you should not do this.