Javascript data - best format for speed

Javascript data - best format for speed

andrewtmendozaandrewtmendoza 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

Answers

  • allanallan Posts: 61,805Questions: 1Answers: 10,119 Site admin
    Answer ✓

    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

  • andrewtmendozaandrewtmendoza Posts: 12Questions: 4Answers: 0
    edited January 2017

    Thanks @allan!

This discussion has been closed.