diff --git a/pmd-dcpd/etc/build.xml b/pmd-dcpd/etc/build.xml index e9dc9a3900..29d03e9fe8 100644 --- a/pmd-dcpd/etc/build.xml +++ b/pmd-dcpd/etc/build.xml @@ -5,7 +5,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -55,7 +55,7 @@ - + diff --git a/pmd-dcpd/src/net/sourceforge/pmd/dcpd/DCPD.java b/pmd-dcpd/src/net/sourceforge/pmd/dcpd/DCPD.java index fb1b02b97f..5adadf235c 100644 --- a/pmd-dcpd/src/net/sourceforge/pmd/dcpd/DCPD.java +++ b/pmd-dcpd/src/net/sourceforge/pmd/dcpd/DCPD.java @@ -30,19 +30,23 @@ public class DCPD { public DCPD(String javaSpaceURL) { try { + long start = System.currentTimeMillis(); System.out.println("Connecting to JavaSpace"); space = Util.findSpace(javaSpaceURL); System.out.println("Tokenizing"); job = new Job("java_lang", new Integer(1)); - tokenSetWrapper = new TokenSetsWrapper(loadTokens("C:\\j2sdk1.4.0_01\\src\\java\\lang\\ref\\", true), job.id); + tokenSetWrapper = new TokenSetsWrapper(loadTokens("C:\\j2sdk1.4.0_01\\src\\java\\lang\\", true), job.id); + System.out.println("Tokenizing complete, " + (System.currentTimeMillis()-start) + " elapsed ms"); System.out.println("Writing the TokenSetsWrapper to the space"); space.write(tokenSetWrapper, null, Lease.FOREVER); + System.out.println("Writing complete, " + (System.currentTimeMillis()-start) + " elapsed ms"); System.out.println("Crunching"); DGST dgst = new DGST(space, job, tokenSetWrapper.tokenSets, 30); Results results = dgst.crunch(new CPDListenerImpl()); + System.out.println("Crunching complete, " + (System.currentTimeMillis()-start) + " elapsed ms"); System.out.println("Cleaning up"); space.take(tokenSetWrapper, null, 200); diff --git a/pmd-dcpd/src/net/sourceforge/pmd/dcpd/TilePlanter.java b/pmd-dcpd/src/net/sourceforge/pmd/dcpd/TilePlanter.java index 28658427ed..97f026112c 100644 --- a/pmd-dcpd/src/net/sourceforge/pmd/dcpd/TilePlanter.java +++ b/pmd-dcpd/src/net/sourceforge/pmd/dcpd/TilePlanter.java @@ -39,7 +39,8 @@ public class TilePlanter { null, null); space.write(tw, null, Lease.FOREVER); //System.out.println("Scattering " + tw.tile.getImage() + "->" + tw.occurrences.size()); - if (tilesSoFar++ % 25 == 0) { + tilesSoFar++; + if (tilesSoFar % 100 == 0) { System.out.println("Written " + tilesSoFar + " tiles so far"); } }