The trick is called cache preload. If you copy everything from disk to ram before you launch the app, then the app runs completely out of ram. It doesn't matter whether you allocate a fixed ramdisk size and copy the files in, or you simply copy the files to /dev/null and let your automatic buffer cache handle it. Either way works and yields the same speed in the end.
In linux, one can preload a directory into buffer cache by issuing a command like
find mydirectory -print0 | xargs -0 cat >/dev/null
There's probably a Windows equivalent command, but I'm not sure what that might be.
|