This website requires JavaScript.
Explore
Help
Register
Sign In
rooty
/
DataTables
Watch
1
Star
0
Fork
0
You've already forked DataTables
mirror of
https://github.com/DataTables/DataTables.git
synced
2025-02-07 05:54:15 +01:00
Code
Issues
Releases
Activity
DataTables
/
.datatables-commit-sync
2 lines
41 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix: API performance improvement - sigifnicantly faster API access for large tables. Testing with a table of 50'000 rows `rows().count()` is now 23mS executation time, while it was 996mS before! - The `_unique()` function was a killer because it uses nested loops to determine if items have been seen before in an array. In the majority of cases when accessing the API the items will be unique already, so running the nested loops is hugely detremental to performance. - Rather than attempting to improve the performance of `_unique()` itself, we try to avoid running its algorithim at all. An array of the items is sorted and tested to see if there are unique items or not. In the majority of cases this means a massive performance boost since it is a single loop rather than a nested loop.
2017-04-14 21:10:23 +01:00
5300387cfec28cc7f0182166894833583cdcfda4
Reference in New Issue
Copy Permalink