Question

I was wondering how can I make the IO faster by writing and reading temporary files to main memory. I've used to write to /dev/shm in Linux.

But now I'm in Windows 7. Anyone knows the answer ?

Thanks

Was it helpful?

Solution

If I understood it correctly (based on this post) what you are looking for is Memory Mapped Files.

OTHER TIPS

You can use CreateFile() with FILE_ATTRIBUTE_TEMPORARY, and Windows should try to keep it in cache as much as possible.

This link summarizes the implementation of the /dev/shm concept for the Windows operating system: http://en.wikipedia.org/wiki/TMPFS#Microsoft_Windows

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top