How does JSON compare to XML in terms of file size and serialisation/deserialisation time?

前端 未结 8 1794
萌比男神i
萌比男神i 2020-12-28 16:43

I have an application that performs a little slow over the internet due to bandwidth reasons. I have enabled GZip which has improved download time by a significant amout, bu

8条回答
  •  生来不讨喜
    2020-12-28 17:02

    Yes JSON would be about 30% faster there are fewer characters going over the line and its very quick to parse.

    Ypu could also take a look at "YAML" which sends an absolute mininmum of metadata in the message.

提交回复
热议问题