Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In-Memory File System for Windows

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?

like image 521
Joshua Fox Avatar asked May 26 '09 09:05

Joshua Fox


2 Answers

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?

like image 191
sleske Avatar answered Sep 19 '22 09:09

sleske


Commons VFS provides handy interfaces to virtual filesystems, inclunding in-memory file system.

like image 35
Valentin Rocher Avatar answered Sep 23 '22 09:09

Valentin Rocher