Wire简介
轻量级的protocol buffers,针对移动设备的java库
(和protoc产生的代码相比较)由Wire生成的代码方法数量将大大减少,这将有助于android应用避免方法数65k的限制
使用方法
下载最近的wire jar包,目前最新的版本是wire-compiler-1.7.0-jar-with-dependencies.jar, github上有下载链接
编写 .proto...
分类:
其他好文 时间:
2015-05-03 17:34:29
阅读次数:
148
Java NIO(New IO)是从Java 1.4版本开始引入的一个新的IO API,可以替代标准的Java IO API。本系列教程将有助于你学习和理解Java NIO。
Java NIO提供了与标准IO不同的IO工作方式:
Channels and Buffers(通道和缓冲区):标准的IO基于字节流和字符流进行操作的,而NIO是基于通道(Channel)和缓冲区(Buffe...
分类:
编程语言 时间:
2015-04-30 18:09:44
阅读次数:
215
protobuf的使用和原理,请查看:http://blog.csdn.net/majianfei1023/article/details/45112415
Windows下google protobuf开发环境配置
最近项目需求,Client与Server的网络通信协议传输使用google protobuf rpc。对于Protobuf,以前是只知道有这个东西,知道它干嘛,而且一直很仰慕,但...
分类:
Windows程序 时间:
2015-04-29 23:34:22
阅读次数:
5837
Linux系统内存机制:在linux中有这么一种思想,内存不用白不用,因此它尽可能的cache和buffer一些数据,以方便下次使用。但实际上这些内存也是可以立刻拿来使用的。所以空闲内存=free+buffers+cached#!/bin/bash
USAGE="`basename$0`[-w|--warning]<percentfree>[-c|--cri..
分类:
移动开发 时间:
2015-04-21 14:52:17
阅读次数:
158
Linux系统内存机制:在linux中有这么一种思想,内存不用白不用,因此它尽可能的cache和buffer一些数据,以方便下次使用。但实际上这些内存也是可以立刻拿来使用的。所以空闲内存=free+buffers+cached#!/bin/bash
USAGE="`basename$0`[-w|--warning]<percentfree>[-c|--cri..
分类:
移动开发 时间:
2015-04-21 13:12:06
阅读次数:
129
在Linux下查看内存我们一般用command free [root@nonamelinux ~]# freetotal used free shared buffers cached Mem: 386024 377116 8908 0 21280 155468 -/+ buffers/cach.....
分类:
系统相关 时间:
2015-04-19 22:41:30
阅读次数:
283
一.什么是protobuf
protobuf全称Google Protocol Buffers,是google开发的的一套用于数据存储,网络通信时用于协议编解码的工具库。它和XML或者JSON差不多,也就是把某种数据结构的信息,以某种格式(XML,JSON)保存起来,protobuf与XML和JSON不同在于,protobuf是基于二进制的。主要用于数据存储、传输协议格式等场合。那既然有了XML...
分类:
其他好文 时间:
2015-04-19 21:28:16
阅读次数:
161
一 下载
Google下载地址:https://developers.google.com/protocol-buffers/docs/downloads?hl=zh-CN
Github下载地址:https://github.com/google/protobuf
我这里下载版本:protobuf-2.6.1.tar.gz
二 编译
1 解压
将上面的压缩包解压到文件夹 pro...
分类:
其他好文 时间:
2015-04-13 20:55:05
阅读次数:
274
引自:http://www.michael-noll.com/blog/2013/06/21/understanding-storm-internal-message-buffers/When you are optimizing the performance of your Storm topo...
分类:
其他好文 时间:
2015-04-13 20:26:34
阅读次数:
178
1 What is protocol buffer.Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structrured data - th...
分类:
其他好文 时间:
2015-04-13 12:41:19
阅读次数:
233