Git Product home page Git Product logo

pb2json's Introduction

pb2json

protobuf message与json互转,使用C++11特性

目前使用两种方式完成:一种是byReflection,即利用Protobuf提供的反射机制作的互转,一种是防GenerateCode,即生成代码的方式完成。 众所周知,采用反射机制做互转会消耗一定的性能,这也是反射本身存在的问题。当然目前的服务器对于消耗不是很大的性能,可以忽略考虑。 但如果需要考虑性能问题,则可以考虑使用代码生成的方式。代码生成的方式则会生成一个头文件,专门用于转换处理。

pb2json's People

Contributors

haustwang avatar

Watchers

James Cloos avatar wangxiusong avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.