Running your build/source code from a ram disk.


 

As a test I wanted to run a build from a drive in ram rather than on a physical disk drive using the old Dos style Ram disk. For a trivial build that includes compilation, Asp.net compilation, database updates, unit test, and integration tests. I saw the build time decrease by 41%. That is pretty good.

buildFromRamDisk

Running MvcContrib build using this same method return the following results, a decrease in build time from 37 to 28.7 seconds.

RamDiskCompileMvcContrib

I am running this from an XP virtual machine with the ram disk that is available for free from here:  http://www.mydigitallife.info/2007/05/27/free-ramdisk-for-windows-vista-xp-2000-and-2003-server/

This is just a prototype and I am just playing with this idea right now.  Next I am going to do some tests with loading database files to the ram disk and look at some options for ensuing all my data is not lost…. The important thing to know about the RAM Disk is that when the machine shuts down it dumps the contents of the disk.  There are some options where the drive can be mapped to an image file so that the drive can start up with some basic configuration.  More to come….

Come see me speak about Silverlight 2.0 at the Alamo Coders on Tuesday July 8th