NetSerializer - A Fast, Simple Serializer for .NET

来源:互联网 发布:数据库运维管理制度 编辑:程序博客网 时间:2024/05/02 04:16

原文:http://www.codeproject.com/Articles/351538/NetSerializer-A-Fast-Simple-Serializer-for-NET

github地址:https://github.com/tomba/netserializer

NetSerializer - A fast, simple serializer for .NetNetSerializer is a simple and very fast serializer for .Net languages. It isthe fastest serializer I have found for my use cases.The main pros of NetSerializer are:- Excellent for network serialization- Supports classes, structs, enums, interfaces, abstract classes- No versioning or other extra information is serialized, only pure data- No type IDs for primitive types, structs or sealed classes, so less data to  be sent- No dynamic type lookup for primitive types, structs or sealed classes, so  deserialization is faster- No extra attributes needed (like DataContract/Member), just add the standard  [Serializable]- Thread safe without locks- The data is written to the stream and read from the stream directly, without  the need for temporary buffers or large buffers



0 0
原创粉丝点击