首页 > google的protobuf比这样java原生的方式更有效率吗?

google的protobuf比这样java原生的方式更有效率吗?

@Override
public void write(java.io.DataOutput do) throws IOException {
do.writeUTF(this.string1);
do.writeUTF(this.string1);
do.writeLong(this.long1);
}

@Override
public void readFields(java.io.DataInput di) throws IOException {
this.string1= di.readUTF();
this.string2 = di.readUTF();
this.long1 = di.readLong();
}

如果更有效率,为什么?和java这样比有什么优缺点?
另外下面这个链接的结果是啥意思?
https://github.com/eishay/jvm-serializers/wiki


  听过,以前有公司提供webservice的数据的存储格式就是用的这个。具体自己没用过;IBM有文章介绍过:
    https://www.ibm.com/developerworks/cn/linux/l-cn-gpb/
【热门文章】
【热门文章】