Mercurial > hg > Members > tatsuki > bench > jungle-core
changeset 162:38068be4fa4c
DefaultTransactionManager add write createIndexTime
author | one |
---|---|
date | Mon, 08 Dec 2014 03:42:26 +0900 |
parents | 6b4aab79910d |
children | 7be56a1be5d9 |
files | pom.xml src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java |
diffstat | 2 files changed, 18 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pom.xml Sun Dec 07 19:19:21 2014 +0900 +++ b/pom.xml Mon Dec 08 03:42:26 2014 +0900 @@ -34,7 +34,7 @@ <dependency> <groupId>org.functionaljava</groupId> <artifactId>functionaljava</artifactId> - <version>3.1</version> + <version>4.1</version> </dependency> <dependency> <groupId>org.apache.maven.surefire</groupId> @@ -48,8 +48,8 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> - <source>1.6</source> - <target>1.6</target> + <source>1.8</source> + <target>1.8</target> </configuration> </plugin> </plugins>
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java Sun Dec 07 19:19:21 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java Mon Dec 08 03:42:26 2014 +0900 @@ -1,5 +1,10 @@ package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.io.PrintWriter; import java.util.Iterator; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent.ChangeList; @@ -64,6 +69,16 @@ traverser.createIndex(); long t2 = System.currentTimeMillis(); System.out.println("createIndexTime = " + (t2 - t1)); + File file = new File("./time/createParentIndexFunctionalJava"); + try { + PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(file,true))); + pw.println(t2 - t1); + pw.close(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + Index nulIndex = traverser.getIndex(); ParentIndex nulParentIndex = traverser.getParentIndex(); DefaultChangeSet newCs = new DefaultChangeSet(_newRoot, cs, list, uuid, _treeName, nextRevision, nulIndex,