fastest c++ serialization?

后端 未结 11 2416
花落未央
花落未央 2021-02-18 18:08

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:28

    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

提交回复
热议问题