Closed ankush closed 5 months ago
visibleRowIndices.includes is major culprit in rendering data table. This is because for every row it does this computation, so instead of O(N) operation it becomes O(N^2)
refer https://github.com/frappe/frappe/pull/25395
Now most slowdown is from this copying: https://github.com/ankush/datatable/blob/4f5b2422ec893bbfc98b75d2a3037ae3a3e0b204/src/datamanager.js#L213-L215
:tada: This PR is included in version 1.17.15 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
visibleRowIndices.includes is major culprit in rendering data table. This is because for every row it does this computation, so instead of O(N) operation it becomes O(N^2)
refer https://github.com/frappe/frappe/pull/25395
Now most slowdown is from this copying: https://github.com/ankush/datatable/blob/4f5b2422ec893bbfc98b75d2a3037ae3a3e0b204/src/datamanager.js#L213-L215