how to solve this problem# Unix - 噫吁兮,危乎高哉
a*a
1 楼
I have to call a external tool in my C code.
the tool will read a file and generate some files to the disk,
I want to speed up this process, becuase I may have to call it
many times. The input file to this tool can be generated by my
code also. How can I use this tool without accessing disk?
I mean how can I feed the input file generated by my code to this
tool and force this tool output its result to the memory instead
of file in the disk? It seems that memor mapped file could be
a solution,
the tool will read a file and generate some files to the disk,
I want to speed up this process, becuase I may have to call it
many times. The input file to this tool can be generated by my
code also. How can I use this tool without accessing disk?
I mean how can I feed the input file generated by my code to this
tool and force this tool output its result to the memory instead
of file in the disk? It seems that memor mapped file could be
a solution,