:: Forum >>

performance with multiple objects on page

First i like to thanks Alex for this amazing lib. I have performance problems with my application:
on one page i have app. 10grids (12columns,5rows), 6groups, 20labels, 1tabs meni and render time is more than 8sec. on p4 box.
In the second case i have app. 1200 items in CheckedList and page opening about 10secs.
I using test version 2.0rc1 and plan buying 2.0 when project will be finished, but this slow performance times confusing me. Can someone tell me is this performance times normal for aw or i make some mistakes in the code?

example grid from my code:
var indexVolumeTable1_columns = [...data];
var indexVolumeTable1_data = [...data];
var indexVolumeTable1 = new AW.UI.Grid;
indexVolumeTable1.setId("indexVolumeTable1");
indexVolumeTable1.setCellText(function(i, j){return indexVolumeTable1_data[j][i]});
indexVolumeTable1.setHeaderText(function(i){return indexVolumeTable1_columns[i]});
indexVolumeTable1.setColumnCount(12);
indexVolumeTable1.setRowCount(5);
indexVolumeTable1.setSelectionMode("single-row");
indexVolumeTable1.onRowDoubleClicked = function(text){
    var id = indexVolumeTable1.getCellValue(0,indexVolumeTable1.getSelectedRows());
    window.location="analysis.php?symbol="+id;
    }
indexVolumeTable1.setColumnIndices([3,7,11]);
document.write(indexVolumeTable1);


example checked list from my code:
var portfolioComparsionList_data = [..data]
var portfolioComparsionList = new AW.UI.CheckedList;
portfolioComparsionList.setId("portfolioComparsionList");
portfolioComparsionList.setItemText(portfolioComparsionList_data);
portfolioComparsionList.setItemCount(1189);
document.write(portfolioComparsionList);
Kroky
Friday, March 3, 2006
I think it's cause you have RC1
Tony
Friday, March 3, 2006
I tested script with 2.0-firefox free trial too and times are similar.
Kroky
Saturday, March 4, 2006
I would say 'normal' AW performance is 0.5-2 sec per 1000 cells (or list items or simple controls) on average PC. So in my view 8 sec per 10 grids is normal. You can gain 20-30% using more simple cell template (AW.Templates.Cell). Alternatively you can render empty grids on page load, then load data and refresh the grids one by one.

10 sec per 1200 items list is not normal. On an empty page I am getting 2.5 sec per 1200 items list, which is still too much, so probably there is something wrong with list CSS, I'll try to check this.
Alex (ActiveWidgets)
Monday, March 6, 2006
Yes, the page is not empty, there is more objects on it... Thank you for answer, i will try with loading empty grids. For end user is better to see the page and than wait a little for data, than if he must wait for all page some time.
Kroky
Tuesday, March 7, 2006

This topic is archived.


Back to support forum

Forum search