Hello,
I currently evaluating the 3.1d enterprise edition (2012/10/04). I've noticed that the method ListGrid::startEditingNew(record) is very slow. The creation of 100 new Records took 10,9 s in firefox and 5,7 s in chrome. I need to generate these entries on the fly so the user can complement some fields and save everytihng in one transaction.
Is there a way to speed up this method? Here is a simple EntryPoint to test the behaviour:
I currently evaluating the 3.1d enterprise edition (2012/10/04). I've noticed that the method ListGrid::startEditingNew(record) is very slow. The creation of 100 new Records took 10,9 s in firefox and 5,7 s in chrome. I need to generate these entries on the fly so the user can complement some fields and save everytihng in one transaction.
Is there a way to speed up this method? Here is a simple EntryPoint to test the behaviour:
Code:
public void onModuleLoad() {
final ListGrid lg = new ListGrid();
lg.setFields(new ListGridField("f1"));
lg.setCanEdit(true);
lg.draw();
long time;
long timeTotal = System.currentTimeMillis();
for (int i = 0; i < 100; i++){
time = System.currentTimeMillis();
ListGridRecord record = new ListGridRecord();
record.setAttribute("f1", "foo");
lg.startEditingNew(record);
SC.logWarn("### " + i + ": " + (System.currentTimeMillis() - time));
}
SC.logWarn("### Total : " + (System.currentTimeMillis() - timeTotal));
}
Comment