DakotaDelNorte
DakotaDelNorte

Reputation: 21

Performance when execute a process from other process

I have an application that performs a conversion process from input data, his size is about 100-150 kb, and returns a JSON.

This application (written in C) is used by another app (written in nodejs). My question is, assuming a high degree of usage, even concurrent, which option gives better performance?:

Currently I have developed it based on the second option, but I have the doubt presented regarding the performance.

Thank you in advance.

Upvotes: 0

Views: 41

Answers (1)

Stephen C
Stephen C

Reputation: 719426

It is hard to be sure which will be faster. It may depend on the file system type, the performance characteristics of the storage device, how the applications write and read the data ... and other things.

Either way, my intuition is that the performance difference between the two approaches will not be significant.

My advice would be:

  1. Continue with your current approach.
  2. When you have it working measure the performance.
  3. If the performance is acceptable, stop: you have a working solution.
  4. If the performance is not acceptable, implement the other approach and see if it is faster.

(I don't think it is likely to be much effort to implement both approaches and test them, but effort is effort, and it is not worth expending effort to optimize something that doesn't need to be optimized.)

Upvotes: 1

Related Questions