Javascript data - best format for speed
Javascript data - best format for speed
andrewtmendoza
Posts: 12Questions: 4Answers: 0
When initializing DataTables using the Javascript data option, is it faster to provide data as a 2D array or an array of objects?
https://datatables.net/reference/option/data
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
No difference.
The only difference I can think of would be that with objects there is more data to download (assuming you are loading the objects over HTTP rather than Javascript generating them), since the parameter names must be present for each parameter.
Allan
Thanks @allan!