protobuf message与json互转,使用C++11特性
目前使用两种方式完成:一种是byReflection,即利用Protobuf提供的反射机制作的互转,一种是防GenerateCode,即生成代码的方式完成。 众所周知,采用反射机制做互转会消耗一定的性能,这也是反射本身存在的问题。当然目前的服务器对于消耗不是很大的性能,可以忽略考虑。 但如果需要考虑性能问题,则可以考虑使用代码生成的方式。代码生成的方式则会生成一个头文件,专门用于转换处理。
This project forked from haustwang/pb2json
protobuf message与json互转,使用C++11特性
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.