前一段时间逛园子的时候发现有人比较了Jil.Json.NET和Protobuf的性能,一时好奇,也做了个测试,这里记录下来,以供查阅. 前期准备 依赖类库的话,可以通过Nuget在公共组件库总下载,这里不做赘述.我在数据库中生成了一些PostInfo数据,取100条进行测试: [ProtoContract] public class PostInfo { [ProtoMember()] public long P_ID { get; set; } [ProtoMember()] public s…
Declarative API k8s: cluster-api Introduction to Kubernetes Cluster-API Project Declarative Management of Kubernetes Objects Using Configuration Files Imperative/Declarative and a Few `kubectl` tricks Kubernetes Object Management (official) api-exten…
google的protobuf是一种轻便高效的结构化数据存储格式,在通信协议和数据存储等领域中使用比较多.protobuf对于结构中的每个成员,会提供set系列函数和get系列函数. 但是,对于使用来说,需要根据传入的参数考虑需要调用的函数名,在使用这个比较多的情况,还是会让人觉得有些麻烦.而且,对于有些使用,例如之后打算不再使用protobuf,改为直接将数据压入内存段(The raw in-memory data structures sent/saved in binary form),或…