fastest c++ serialization?

后端 未结 11 1490
自闭症患者
自闭症患者 2021-02-18 17:57

Good morning all,

I\'m searching for a very fast binary serialization technique for c++. I only need to serialize data contained in objects (no pointers etc.). I\'d like

11条回答
  •  长发绾君心
    2021-02-18 18:39

    A lot of the performance is going to depend on memory buffers and how you fill up blocks of memory before writing to disk. And there are some tricks to making standard c++ streams a little faster, like std::ios_base::sync_with_stdio (false);

    But IMHO, the world doesn't need another implementation of serialization. Here are some that other folks maintain that you might want to look into:

    • Boost: Fast, assorted C++ library including serialization
    • protobuf: Fast cross-platform, cross-language serialization with C++ module
    • thrift: Flexible cross-platform, cross-language serialization with C++ module

提交回复
热议问题