I have written a main script that calls a system program tens of thousands of times. The main script creates and provides this program with an input file on each call. Upon completion, the program creates an output file which is read by the main script. The program is run with:
program inputFile outputFile
The main script is running slowly, and I believe that this is due to the large I/0 overhead incurred whilst running
Is it possible to run this program without writing or reading to disk?
Note that both
outputFile may contain multiple lines.
The internals of the program could be changed, but I would prefer to not do this.
Unfortunately I couldn't find relevant advice elsewhere.