I am calling a FORTRAN program in R and analyzing FORTRAN's output file, which is a little big (around 50M per iteration). For each iteration, it takes about 50 seconds, in which the read.table
command needs 42 seconds. Since I need to repeat this program 100,000 times, I am wondering if there are better ways to speed it up?
For example, is it possible to let FORTRAN save everything into memory and pass it to R?
Thanks!