do not instantiate millions of ArrayList

This commit is contained in:
2015-07-09 13:03:29 +02:00
parent 42a8fc4c22
commit 9415a7a115
5 changed files with 33 additions and 19 deletions
@@ -52,8 +52,8 @@ public class SwapIns extends InstructionDefinition {
GraphTargetItem o2 = stack.pop();
stack.push(o1);
stack.push(o2);
o1.moreSrc.add(new GraphSourceItemPos(ins, 0));
o2.moreSrc.add(new GraphSourceItemPos(ins, 0));
o1.getMoreSrc().add(new GraphSourceItemPos(ins, 0));
o2.getMoreSrc().add(new GraphSourceItemPos(ins, 0));
}
@Override