ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

With large data and grouping, expand/collapse rows seems to be very slow.

Open BaoyunChen opened this issue 9 years ago • 4 comments

I have more than 60000 rows and group them into several groups. When expand/collapse rows, it take at least several seconds to re-draw the grid.

Here is a plunker to show the problem: http://plnkr.co/edit/5C7B3RU0kLszzgyr7xyf?p=preview

However, in v2 with the same data set and grouping setting, it seems to be quite fast. Is there any way to improve the performance or why it becomes so slow in v3.

BaoyunChen avatar Jan 19 '16 05:01 BaoyunChen

At first glance, I thought that GC and redraw was the culprit but a closer look shows that the grid's sorting is the issue. I attach 2 files here: uigridgroupingperformanceissue This image shows what functions take most time when doing the actual grouping. I have the full timeline data, but it's around 76MB (for just the act of grouping the grid's data...). Testing the expand/collapse rows shows the same image. When seeing this there are 2 main solutions:

  1. Improve the sorting algorithm
  2. Web workers :)

YonatanKra avatar Jan 23 '16 19:01 YonatanKra

+1

alexlukelevy avatar Mar 18 '16 15:03 alexlukelevy

+1

moisesmarques avatar Jan 19 '17 13:01 moisesmarques

Our team is using ag-grid enterprise to view up to 64mb of log data. Web worker support and other perf improvements would be very much appreciated 😄

tonjohn avatar May 20 '19 22:05 tonjohn