On 09/21/2016 08:35 PM, Georg Gast wrote:
Am 21.09.2016 um 19:36 schrieb Bjorn Reese:
The Boost archives use iostreams, whereas cstyle uses memcpy.
Yes, thats clear. :)
I am not sure how to interpret your response. My statement was not a casual observation about your tests, but the main explanation for the difference in performance.
That is one of the reasons why my own archives, unlike the ones that are part of Boost.Serialization, are constructed to serialize directly to/from other container types such as arrays, std::string, and std::vector.
I just found out one issue on Windows:
static void to_wire_xml(benchmark::State& state)
{
//std::locale::global(std::locale("C"));
while (state.KeepRunning())
{
boost_test