id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 9116,Binary serialization: bitwise copying should also apply to single POD objects (it now only seems to work on arrays/collections),Louis Zanella ,Robert Ramey,"I'm trying to find the best settings for fast binary serialization of big POD objects. My tests indicate that, for a structure tagged as bitwise serializable, I only get better performance on arrays and vectors, not on individual objects. For instance, say I have a structure made up only of POD types: {{{ struct BigStruct { double m1; long long m2; float m3; // ... bool m499; short m500; }; namespace boost { namespace serialization { template void serialize(Archive& ioArchive, BigStruct& ioStruct, const unsigned int iVersion) { ioArchive & ioStruct.m1; ioArchive & ioStruct.m2; ioArchive & ioStruct.m3; // ... ioArchive & ioStruct.m499; ioArchive & ioStruct.m500; } } } #include BOOST_IS_BITWISE_SERIALIZABLE(BigStruct); }}} Then, serializing a single !BigStruct object takes considerably (at least 5 times) longer than serializing an array of 1 !BigStruct object.",Bugs,new,To Be Determined,serialization,Boost 1.53.0,Optimization,,"serialization, binary, bitwise, POD",