Re: [Boost-bugs] [Boost C++ Libraries] #2563: [boost][serialization] void_upcast is very slow

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2563: [boost][serialization] void_upcast is very slow
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-04 20:29:21


#2563: [boost][serialization] void_upcast is very slow
----------------------------------+-----------------------------------------
  Reporter: jacobholm_at_[hidden] | Owner: ramey
      Type: Feature Requests | Status: assigned
 Milestone: Boost 1.38.0 | Component: serialization
   Version: Boost 1.37.0 | Severity: Optimization
Resolution: | Keywords:
----------------------------------+-----------------------------------------
Changes (by ramey):

  * status: new => assigned

Comment:

 I am interested in making the library faster.

 But, I don't see your solution working execept in special cases.
 void_upcast also "shifts" the pointer much like

 static_cast<A *>(b)

 would. Your solution would work only when the derived class has not
 member variables

 Robert Ramey

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2563#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:49:59 UTC