You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.slice().splice(index, pageSize) will create an unneeded full copy of the underlying data, and then also mutate it to splice a page. Neither of these operations are needed, and can be particularly slow for larger datasets.
.slice(index, index + indexPageSize) is almost constant time.
In case of a datasource with 1,000,000 rows (big, yes, but not absurdly so), pagination is currently visibly sluggish on my machine. Benchmarks seem to blame this: https://measurethat.net/Benchmarks/ShowResult/62222
0 commit comments