olifolkerd / tabulator

Interactive Tables and Data Grids for JavaScript
http://tabulator.info
MIT License
6.76k stars 821 forks source link

Select Range doesn't handle big data properly #4523

Open azmy60 opened 5 months ago

azmy60 commented 5 months ago

Right now, if I have a 8mb of dataset (5000 rows) on tabulator with Select Range enabled, it becomes very slow. Selecting a cell by clicking it takes about 5-10 seconds until it actually shows the selection outlines and the UI hangs within those seconds.

It looks like Select Range is looping through all data instead of the data that are necessary to check. It should work like virtual renderer.

I used the same dataset on google sheet and it works perfectly and doesn't lag at all except when I paste the data right onto it which takes around > 10 seconds.

olifolkerd commented 4 months ago

@azmy60 as the man who built the select range module, are you not best placed to submit a PR for this one?

Cheers

Oli :)