mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-09 03:46:05 +01:00
9182f8c285
- 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. |
||
---|---|---|
.. | ||
css | ||
images | ||
js |