protobuf的使用:项目地址:https://github.com/chrisdew/protobufpeedTheProtobufforNodeadd-onreliesontheprotobufC++runtimebutitdoesnotrequireanygeneration,compilationorlinkageofgeneratedC++code.Itworksreflectivelyandisthusabletodealwitharbitraryschemas.Thismea..
分类:
Web程序 时间:
2014-08-13 19:26:48
阅读次数:
421
一.必须软件:
在Ubuntu系统编译运行Nominatim软件系统必须安装的软件有:
1.GCC
编译器
2.postgresql
数据库
3.proj4
4.geos
5.postgis
6.PHP
7.PHP-pgsql
8.PEAR::DB
9.protobuf
10.wget
11.osmis
二.安装必须的软件包
Apt-get install b...
分类:
其他好文 时间:
2014-08-13 18:49:57
阅读次数:
322
一. 简单介绍一下protobuf:Protocol Buffers are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications p...
分类:
Web程序 时间:
2014-08-08 17:43:36
阅读次数:
243
个人理解:定义.proto文件就是指明消息里包含的成员和类型,protoc会compile成相应的java文件包含interface和implementation class,然后在构建message的时候要使用builder,然后写到outputstream里。应用实例:ByteArrayOutp...
分类:
其他好文 时间:
2014-08-06 01:24:10
阅读次数:
403
json数据格式在网络中传输需要的数据比二进制庞大太多,我们可以省去key,外加将数字不需要编码成字符串,直接二进制编码就OK。
pack : 将json压包,unpack解包成json。
var Struct = module.exports = {};
Struct.TYPE = {
int8:1,
int16:2,
int32:3,
uint8:4,
uint16:...
分类:
Web程序 时间:
2014-08-01 16:14:41
阅读次数:
360
简介
NIO的作用就是改进程序的性能。因为有时候程序的性能瓶颈不再是CPU,而是IO。这时候NIO就派上用场了。NIO的原理就是尽量利用系统底层的资源来提高效率,比如利用DMA硬件减小CPU负荷,利用操作系统的epoll机制避免线程频繁切换。通过底层资源提高系统的吞吐量。
缓冲区
缓冲区就是一个固定大小的一组数据。缓冲区有四个非常重要的属性:容量,限制,位置,标记。容量就是一个缓冲区...
分类:
编程语言 时间:
2014-07-31 00:07:35
阅读次数:
388
安装环境Ubuntu 14.04 64 bit安装过程分为三步1. Linux下安装Protobuf2. Eclipse下安装protobuf.dt插件3. Eclipse下配置动态链接库并运行demo第一步 Linux下安装protobuf到官网下载protobuf,目前的最新版本是2.5.0,也...
分类:
系统相关 时间:
2014-07-30 23:27:25
阅读次数:
1170
新项目需要 用 Java 读取?protobuf-net-data encode之后的数据,实在是个让人蛋疼的任务。 protobuf-net-data 把 查询结果封装成 DataTable,用法自己参考原文。 这里说说我要做的事情 Understand Protobuf Enco...
分类:
其他好文 时间:
2014-07-30 05:36:53
阅读次数:
280
在调用protobuf的ParseFromString(str)方法时,默认情况下,如果str的长度>64MB,会返回失败。这里给出了解释,主要是出于安全因素的考虑。可以通过SetTotalBytesLimit方法去除这个限制:// ::google::protobuf::Message req;:...
分类:
其他好文 时间:
2014-07-29 11:15:56
阅读次数:
1294
Java 使用 Netty 与 C# 进行通信...
分类:
Web程序 时间:
2014-07-26 15:03:30
阅读次数:
314