douwen4125 2018-03-26 15:16
浏览 75

如何通过ajax减少大数组的传输时间

enter image description hereDescription

my code is transferring json object from server to client using php,js trough ajax. json object consist of big array (200X200) of integers.

server is localhost

Problem

Data transfer is getting delay so that it effect the js web output, please let me know any points to tackle this problem.

enter image description here

  • 写回答

1条回答 默认 最新

  • dongli1887 2018-03-28 16:49
    关注

    If you have the ability to change the format in which the server expects the data, then you can try a more efficient format than JSON, such as raw binary data. In that case, you can shrink the payload to 200x200x4 bytes (or even less, depending on the range of values you want to send).

    评论

报告相同问题?

悬赏问题

  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
  • ¥188 需要修改一个工具,懂得汇编的人来。
  • ¥15 livecharts wpf piechart 属性
  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了