Boost Serialization of vector<char>

北慕城南 提交于 2019-12-02 07:10:10
sehe

Measure it!

The sort answers:

  • No it doesn't cost much. Profile it (and see whether it fits your application)
  • No, vector elements will not be differentiated for vectors of POD types.
    (Things change when you serialize vectors containing pointers to polymorphic classes. This is obvious, since it couldn't be done more efficiently unless you have extra knowledge about the particular dataset)

The storage cost:

Longer answers:

The runtime cost:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!