FastJSON Gson Jackson性能对比

通信协议:http、TCP/IP协议与socket之间的区别

http://blog.csdn.net/u011200604/article/details/51695414#comments

Android网络请求:

https://blog.csdn.net/nifanggge/article/details/53014706

Android网络编程http,json,webview,socket基础:

http://www.runoob.com/w3cnote/android-tutorial-http.html

http协议原理:

https://blog.csdn.net/itachi85/article/details/50982995


为什么tcp建立连接要3次握手,断开连接要4次握手

https://blog.csdn.net/makecontral/article/details/77531936

Android利用Fiddler进行网络数据抓包 

http://www.trinea.cn/android/android-network-sniffer/


FastJSON Gson Jackson性能对比

https://blog.csdn.net/accountwcx/article/details/50252657

FastJson、Jackson、Gson进行Java对象转换Json的细节处理,null值处理:

https://blog.csdn.net/moneyshi/article/details/51830329

JSON解析步骤

https://blog.csdn.net/miaozhenzhong/article/details/52585726

protobuf使用:

https://blog.csdn.net/u011518120/article/details/54604615

https://www.cnblogs.com/autyinjing/p/6495103.html

跟xml比较,在序列化和反序列化结构化数据时,ProtoBuf拥有XML很多无可比拟的优势:

1、它比XML更为简单。这点显而易见
2、存储同样的数据比XML小3到10倍
3、运行速度比XML快20到100倍
4、更小的二义性
5、直接利用类和成员方法序列化反序列化数据更有利于编程。

protobuf跟json的对比:

http://cxshun.iteye.com/blog/1974498

https://blog.csdn.net/qq_23547831/article/details/51612429?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io

Proto会好些:

如果你需要提高安全,协议非明文。如果你需要提高编解码速度。跨平台的RPC数据传输。

Json会好些:

如果前端是js交互

调试环境比较复杂,因为json可以手动编写序列化反序列化文件。

Protocol Buffers 优点是数据量小

tcp层用pb还不错,http层果断用json,Protocol Buffers是socket通讯,速度比较快,内网通讯首选


基于socket完成文件断点续传:http://www.runoob.com/w3cnote/android-tutorial-socket2.html

猜你喜欢

转载自blog.csdn.net/lin20044140410/article/details/79647656