a****a 发帖数: 24 | 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, | c*****t 发帖数: 1879 | 2 In general, you can't do it. On PC, you could try things like ramdisk.
【在 a****a 的大作中提到】 : 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,
|
|