Ok, I did some more testing and I was wrong.  It's not the inserting
and removing from lists that are the bottleneck.  I moved the time and
log statements around and it had to do with adding to the FlexTable
itself.

I'm using code like:
int row = 1;
for (Iterator<MyData> iter = eventList.iterator(); iter.hasNext(); row+
+) {
  long sysTime = System.currentTimeMillis();
  int column = 0;
  MyData event = (MyData)iter.next();

  table.setText(row, column, event.getNameLast());
  column++;

  table.setText(row, column, event.getNameFirst());
  column++;

  table.setText(row, column, event.getJob());
  column++;

  GWT.log("update time 4: "+(System.currentTimeMillis()-sysTime)+"ms
", null);
}

Now, you can see I'm logging the time after every row is inserted.
The odd thing I'm seeing is that the time per row increase as rows are
traversed.  For example, row 1 takes about 30ms but as the rows
traverse by row 100 each row is taking about 150ms.  It's a steady
increase.
Any insights?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to