用于WIndows的内存文件系统 [英] In-Memory File System for WIndows
问题描述
我有一个命令行可执行文件,我需要从Windows XP上的Java运行。它使用文件作为输入和输出。但我想避免文件IO的开销,所以我想到了一个内存的RAM文件系统。
NetBSD有mount_mfs。
你可以推荐最简单的方法吗? b $ b
你也应该考虑你是否真的需要这个(过早优化,yadda,yadda)。在所有的现代操作系统上,文件系统I / O都是被缓存的,所以经常使用的文件基本上和RAM磁盘一样快。
相关问题):
RAM驱动器编译 - 有没有这样的事情?
I have a command-line executable which I need to run from Java on Windows XP. It uses files as input and output. But I want to avoid the overhead of file IO, so I thought of an in-memory RAM file system.
NetBSD has mount_mfs.
Could you recommend the most convenient way of doing this?
You should also consider whether you really need this (premature optimization, yadda, yadda). On all modern operating systems, filesystem I/O is cached anyway, so frequently-used files are essentially as fast as a RAM disk.
Related question (with many good answers): RAM drive for compiling - is there such a thing?
这篇关于用于WIndows的内存文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!