我需要一个2D数组(作为Json)从服务器发送到客户端.它的大小约为400x400,每个条目的文本长度约为4个字符.因此,数据量约为640KB.
Which of the following extreme approaches is better ?
- I make a large HTTP request of all the data at one go.
- 我发出400个请求——每个请求一行(大约1.6KB)
I believe optimal approach would be somewhere in middle. Could anyone give me an idea what might be the optimal single request size for this data?
谢谢.