Re: [Boost-bugs] [Boost C++ Libraries] #9116: Binary serialization: bitwise copying should also apply to single POD objects (it now only seems to work on arrays/collections)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9116: Binary serialization: bitwise copying should also apply to single POD objects (it now only seems to work on arrays/collections)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-01 12:51:12


#9116: Binary serialization: bitwise copying should also apply to single POD
objects (it now only seems to work on arrays/collections)
-------------------------------------+-------------------------------------
  Reporter: Louis Zanella | Owner: ramey
  <louis.zanella@…> | Status: new
      Type: Bugs | Component: serialization
 Milestone: To Be Determined | Severity: Optimization
   Version: Boost 1.53.0 | Keywords: serialization, binary,
Resolution: | bitwise, POD
-------------------------------------+-------------------------------------

Comment (by ramey):

 basically I like this. But ... what happens to old archives when we
 change this? Example

 // plane old data
 struct A {
 float a;
 double b;
 ...
 };

 if we serialize this as a block - it'll be faster even though it
 serializes any empty space due to structure padding. But this will look
 different than serializing item by item, so this will break compatibility
 with old archives. This would imply reving the archive format, which I
 might be willing to do - but that takes more time and risk so I might want
 to think about it some more.

 Robert Ramey

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9116#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC