lundi 22 décembre 2014

Reflexion performance in iteration


I'm wondering the performance of reflexion in this situation. I'm iterating a (probably) large excel file (let's say 3000 max) which it's going to be done from time to time, and the implementation that my mate is someting like this, iterating each row:



while (cells.hasNext()) {
XSSFCell cell = (XSSFCell) cells.next();
String cellData = this.getCellData(cell);
if (cellData.trim().isEmpty()) {
break;
}
Field field = RowPrestacionVO.class.getField(fields.get(idx));
field.set(vo, cellData);
idx++;
}


Is there any probability that I'm going to have some performance issues iterating like that?


Thanks!





Aucun commentaire:

Enregistrer un commentaire