avatar
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,
avatar
c*t
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,

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。