<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://wiki.marandcustomsolutions.com/rdf'>
    <s:Snip rdf:about='http://wiki.marandcustomsolutions.com/rdf#Improving+Build+Speeds'
         s:cUser='mpecher'
         s:oUser=''
         s:mUser='mpecher'>
        <s:name>Improving Build Speeds</s:name>
        <s:content>1 Speeding Up Build Times&#xD;&#xA;There&apos;s a few things you can do to your local PC to optimise the speed of your build. Here&apos;s some of those suggestions:&#xD;&#xA;1. Increase your Ant Memory Settings&#xD;&#xA;1. Turn off virus scanning for your sourcecontrol view&#xD;&#xA;1. Run a nightly defrag on your machine&#xD;&#xA;&#xD;&#xA;1.1  Increase your Ant Memory Settings&#xD;&#xA;You can set an environment variable that will get picked up by Ant and passed to the JVM when it starts up. One of the useful things to do there is increase the heap size used by the JVM. Here&apos;s a good example:&#xD;&#xA;{code}&#xD;&#xA;SET ANT_OPTS=-Xms256m -Xmx512m&#xD;&#xA;{code}&#xD;&#xA;If you do that in your system environment variables, it will permanently stay on even when you start up a new command window.&#xD;&#xA;&#xD;&#xA;1.1 Disable virus scanning on your view&#xD;&#xA;To disable virus scanning for your view, follow these steps:&#xD;&#xA;   1. Right click on the Virus Scan icon in your task bar&#xD;&#xA;   1. Select &quot;On-Access Scan Properties...&quot;&#xD;&#xA;   1. A dialog box should pop up showing the virus scanning properties&#xD;&#xA;   1. Select the &quot;All Processes&quot; icon on the left-hand side&#xD;&#xA;   1. Click on the &quot;Detection&quot; tab at the top&#xD;&#xA;   1. Click on the &quot;Exclusions&quot; button near the bottom&#xD;&#xA;   1. A dialog box should pop up showing the exclusion properties&#xD;&#xA;   1. Click the &quot;Add...&quot; button&#xD;&#xA;   1. A dialog box should pop up allowing you to add an item&#xD;&#xA;  1. Make sure &quot;By name/location&quot; is selected&#xD;&#xA;  1. Type in &quot;C:\views&quot; into the box (or whatever the location of your views are)&#xD;&#xA;  1. Check the box marked &quot;Also include subfolders&quot;&#xD;&#xA;  1. Select &quot;Ok&quot; in each of the dialog boxes until they&apos;re all closed&#xD;&#xA;&#xD;&#xA;1.1 Nightly Defrag&#xD;&#xA;A new view created for the project has a few hundred megabytes of data in it. A full build generates a few gigabytes of data from that initial set. Continual cleans and re-builds can cause the disk to becomes fragmented fairly quickly. Tests have shown that a defragmented disk will run a build 5-10 minutes faster than a fragmented disk.&#xD;&#xA;&#xD;&#xA;You can set up a defrag tool to run overnight whilst you are not here to keep your machine clean. Note that you will have to leave your machine on to do it.&#xD;&#xA;   1. Open up Control Panel | Scheduled Tasks&#xD;&#xA;   1. Double click on &apos;Add Scheduled Task&apos;&#xD;&#xA;   1. The Scheduled task wizard should pop up&#xD;&#xA;   1. Click &apos;Next&apos;&#xD;&#xA;   1. Click &apos;Browse&apos;&#xD;&#xA;   1. Select &apos;C:\WINDOWS\system32\defrag.exe&apos;&#xD;&#xA;   1. Click &apos;Open&apos;&#xD;&#xA;   1. Select &apos;Daily&apos;&#xD;&#xA;   1. Click &apos;Next&apos;&#xD;&#xA;  1. Set the start time to &apos;1:00 AM&apos;&#xD;&#xA;  1. Click &apos;Next&apos;&#xD;&#xA;  1. Your user name should be defaulted. Type in your password.&#xD;&#xA;  1. Click &apos;Next&apos;&#xD;&#xA;  1. Select &apos;Open advanced properties for this task when I click Finish&apos;&#xD;&#xA;  1. Click &apos;Finish&apos;&#xD;&#xA;  1. Change the command in the &apos;Run&apos; field to say C:\WINDOWS\system32\defrag.exe C:&apos;&#xD;&#xA;  1. Click &apos;OK&apos;&#xD;&#xA;  1. Enter your password&#xD;&#xA;</s:content>
        <s:mTime>2006-05-11 14:59:28.0</s:mTime>
        <s:cTime>2006-05-11 14:59:28.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li>
                    <s:Snip rdf:about='http://wiki.marandcustomsolutions.com/rdf#Improving+Build+Speeds'>
                        <s:attachments
                             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
                    </s:Snip>
                </rdf:li>
                <rdf:li rdf:resource='http://wiki.marandcustomsolutions.com/rdf#Development/Java &amp; J2EE/RAD'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='#vi'/>
            </rdf:Bag>
        </s:snipLinks>
    </s:Snip>
</rdf:RDF>

