View Single Post
  #6 (permalink)  
Old October 30, 2012, 11:57 AM
Ardric Ardric is offline
Top Prospect
 
Join Date: Apr 2010
Location: East Van
Posts: 50

My System Specs

Default

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.
Reply With Quote