Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKms.java @ 380:5f55047a17e8
Moved expensive allocation of result arrays out of km loop.
flys-artifacts/trunk@1795 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 02 May 2011 16:28:57 +0000 |
parents | 0960df8358ec |
children | eb22ffe4d74c |
comparison
equal
deleted
inserted
replaced
379:c21fb8de54f8 | 380:5f55047a17e8 |
---|---|
25 | 25 |
26 public WQKms() { | 26 public WQKms() { |
27 this.w = new TDoubleArrayList(); | 27 this.w = new TDoubleArrayList(); |
28 this.q = new TDoubleArrayList(); | 28 this.q = new TDoubleArrayList(); |
29 this.kms = new TDoubleArrayList(); | 29 this.kms = new TDoubleArrayList(); |
30 } | |
31 | |
32 public WQKms(int capacity) { | |
33 this.w = new TDoubleArrayList(capacity); | |
34 this.q = new TDoubleArrayList(capacity); | |
35 this.kms = new TDoubleArrayList(capacity); | |
30 } | 36 } |
31 | 37 |
32 | 38 |
33 /** | 39 /** |
34 * Adds a new row to this data pool. | 40 * Adds a new row to this data pool. |