.hgignore

Mon, 18 Sep 2017 14:54:20 +0800

author
fujie
date
Mon, 18 Sep 2017 14:54:20 +0800
changeset 6884
37fd1c756f31
parent 6876
710a3c8b516e
permissions
-rw-r--r--

[Interpreter] Performance of the new operation is 10% up.

Running time of the test program: 206ms --> 187ms (on 3A3000-1way @ 1.4 GHz)

public class Test {

private static final int MAX = 400000;

private int a;
private char b;
private char c;
private long d;
private short e;
private byte f;

Test() {
a = 1;
b = 1;
c = 1;
d = 1;
e = 1;
f = 1;
}

public long sum() {
return a + b + c + d + e + f;
}

public static void main(String[] args) throws Exception {
long t = System.currentTimeMillis();
Test[] arr = new Test[MAX];
for (int i = 0; i < MAX; i++) {
arr[i] = new Test();
}
System.out.println((System.currentTimeMillis() - t) + "ms");
//System.gc();
System.out.println(arr[0].sum());
}

}

     1 ^build/
     2 ^dist/
     3 /nbproject/private/
     4 ^src/share/tools/hsdis/build/
     5 ^src/share/tools/IdealGraphVisualizer/[a-zA-Z0-9]*/build/
     6 ^src/share/tools/IdealGraphVisualizer/build/
     7 ^src/share/tools/IdealGraphVisualizer/dist/
     8 ^.hgtip
     9 .DS_Store

mercurial