Bond数据序列化和传输框架
Bond 是一个扩展框架,用来处理系统化数据,特别适合用来处理与大数据存储和处理服务的通讯。
Bond 定义了一个丰富的类型系统和 schema 版本化规则,允许向前向后兼容。核心特性包括高性能序列化和反序列化,非常强大的通用数据传输机制。该框架是高可扩展性的,通过可插入式的序列化协议、数据流和用户定义的类型别名等。
此外 Bond 是语言和平台独立的,当前支持 C++、C# 和 Python 语言。
示例代码:
namespace Examples { using Bond; using Bond.Protocols; using Bond.IO.Safe; class Program { static void Main() { var src = new Example { Name = "FooBar", Constants = { 3.14, 6.28 } }; var output = new OutputBuffer(); var writer = new CompactBinaryWriter<OutputBuffer>(output); // The first calls to Serialize.To and Deserialize<T>.From can take // a relatively long time because they generate the de/serializer // for a given type and protocol. Serialize.To(writer, src); var input = new InputBuffer(output.Data); var reader = new CompactBinaryReader<InputBuffer>(input); var dst = Deserialize<Example>.From(reader); } } }
评论
KryoCocoaObjective-C 序列化框架
KryoCocoa是Kryo高性能Java序列化框架的Objective-C移植版本,兼容Java版本的序列化格式。示例代码:Kryo *kryo = [Kryo new];// ...NSOutpu
KryoCocoaObjective-C 序列化框架
0
febirdC++序列化框架
功能类似于boost.serializaiton或google.protocolbuffer,可以用在协议解析,大/小数据的序列化,有极高的性能(比boost.binary_archive快30~10
febirdC++序列化框架
0
laser-javaJava 序列化框架
laser是Java序列化框架,主要特性是速度快,序列化的字节码更小。序列化170ms长度14919028反序列化143ms
laser-javaJava 序列化框架
0
ScalavroScala 数据序列化
Scalavro是一个使用反射技术实现的Avro库。Avro是一个数据序列化系统,设计用于支持大批量数据交换的应用。它的主要特点有:支持二进制序列化方式,可以便捷,快速地处理大量数据;动态语言友好,A
ScalavroScala 数据序列化
0