[#1634] Improve the performance of Factory.newRecord() by avoiding

accessing record values by Field rather than by index - fixed regression
This commit is contained in:
Lukas Eder 2012-07-27 18:03:11 +02:00
parent 0c4e9f00e4
commit 21b3defc6c

View File

@ -97,7 +97,7 @@ abstract class AbstractRecord extends AbstractStore<Object> implements Record {
int size = getFields().size();
for (int i = 0; i < size; i++) {
Object value = getValue0(i);
Object value = getValue0(i).getValue();
if (value instanceof Attachable) {
result.add((Attachable) value);