Populating huge table in SWT/JFace RCP application

后端 未结 3 1087
北荒
北荒 2021-02-04 11:39

How would you go about displaying huge amount of rows in SWT table? Huge is something above 20K rows, 20 columns. Don\'t ask me why I need to show that much data, it\'s not the

3条回答
  •  执念已碎
    2021-02-04 11:56

    1 - use the setText(String[]) instead of setText(int, String) one call instead of several.

    2 - use myTable.setRedraw(false) before and myTable.setRedraw(true) after the process to stop all redrawing opérations during loading data.

    it's simpler and can improve performance !!

    good luck.

    on my side using this I load 2500 lines of 20 column in less than 300ms..... on a standard today PC.

提交回复
热议问题