Grid performance

Hi

While trying to render a 150 x 100 Grid of strings in Firefox the browser presents his “Unresponsive Script Warning”. Is this simple too much Data for a Grid or is there a bug in my code?

final int COLUMNS = 150;
final int ROWS = 100;

Grid grid = new Grid();
grid.setWidth("100%");

for (int i = 0; i < COLUMNS; i++) {
  grid.addColumn("Column " + (i + 1));
}

for (int i = 0; i < ROWS; i++) {
  ArrayList<String> list = new ArrayList<>(COLUMNS);
  for (int j = 0; j < COLUMNS; j++) {
    list.add("Row " + (i + 1) + " Column " + (j + 1));
  }
  grid.addRow(list.toArray());
}

setContent(grid);

What I know lot of columns still cause some issues in Grid.
Tickets what I’ve found

https://dev.vaadin.com/ticket/18439


https://dev.vaadin.com/ticket/19756

Yes, Grid is by design not optimized for “spreadsheet-like” use. That’s what
https://vaadin.com/spreadsheet
is for.