A faster more efficient way to shuttle data

A faster more efficient way to shuttle data

jamieb22jamieb22 Posts: 10Questions: 7Answers: 0

We're always looking for performance gains. One possible improvement is to use something like Universal JSON Binary http://ubjson.org/ to shuttle data back and forth between client and server. Since the amount of data will typically be around 30% less than straight JSON, it could result in noticeably faster load times, especially on slower connections.

Replies

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    Is there a question in there somewhere? Or is this just an fyi?

  • fkmbkkfkmbkk Posts: 31Questions: 5Answers: 0

    Jamieb22,

    What type of apps that you do ?

  • jamieb22jamieb22 Posts: 10Questions: 7Answers: 0

    I was trying to start a conversation on whether it would be beneficial to try this. and if so, how would one go about swapping out the json handling in datatables.

  • fkmbkkfkmbkk Posts: 31Questions: 5Answers: 0

    Looks like a question here.

  • allanallan Posts: 63,096Questions: 1Answers: 10,390 Site admin

    If this is an area where you are currently seeing near the top of your performance bottleneck list that is is most certainly worth looking at.

    By suggestion for this would not be to integrate UBJSON with DataTables directly, but rather with jQuery. Then you could simply add something like dataType: 'ubjson' to the ajax initialisation object and DataTables would never see (or care) about the transport layer - it would just be given the decoded JSON.

    A quick Google search to see if anyone else has done work on this doesn't show anything up, and the UBJSON implementation list doesn't appear to list anything for client-side Javascript (possibly the Node.JS library could be used, depending on how it is actually coded).

    So if you are interested in looking into this, extending based on jQuery would actually open a muck wider potential user base, rather than just DataTables.

    Regards,
    Allan

This discussion has been closed.