Re: [Boost-bugs] [Boost C++ Libraries] #1252: [pool] severe overhead with unaligned sizes.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1252: [pool] severe overhead with unaligned sizes.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-22 20:50:26


#1252: [pool] severe overhead with unaligned sizes.
--------------------------------+-------------------------------------------
  Reporter: phrosty_at_[hidden] | Owner: marshall
      Type: Bugs | Status: assigned
 Milestone: Boost 1.37.0 | Component: pool
   Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords: pool
--------------------------------+-------------------------------------------

Comment(by anonymous):

 Sorry, I just got around to seeing this. I agree with cnewbold.

 I think the alignment should be align(max(min_size, min(requested_size,
 sizeof(max_type))), 2).

 I'm not familiar with other platforms but on x86/x64, sizeof(max_type) is
 now 32 bytes (for the new AVX instructions from Intel).

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1252#comment:7>
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:58 UTC