$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r65956 - sandbox/variadic_templates/libs/composite_storage/sandbox
From: cppljevans_at_[hidden]
Date: 2010-10-14 11:21:58
Author: cppljevans
Date: 2010-10-14 11:21:56 EDT (Thu, 14 Oct 2010)
New Revision: 65956
URL: http://svn.boost.org/trac/boost/changeset/65956
Log:
Shows effect of sorting by alignment to minimize
padding:
A_type
===========
***components***
----------------
num size align sum_size 
  1    4     4        4 
  2    8     8       12 
  3    8     8       20 
  4    8     8       28 
***composite***
---------------
num size align pad sum_pad offset 
  5   32     8   0       0      _ 
  4   32     8   0       0     24 
  3   24     8   0       0     16 
  2   16     8   4       4      8 
  1    4     4   0       4      0 
  0    0     1   _       _      _ 
A_bools_type
===========
***components***
----------------
num size align sum_size 
  1    4     4        4 
  2    8     8       12 
  3    8     8       20 
  4    8     8       28 
  5    1     1       29 
  6    1     1       30 
  7    1     1       31 
  8    1     1       32 
***composite***
---------------
num size align pad sum_pad offset 
  9   40     8   4       4      _ 
  8   36     8   0       4     35 
  7   35     8   0       4     34 
  6   34     8   0       4     33 
  5   33     8   0       4     32 
  4   32     8   0       4     24 
  3   24     8   0       4     16 
  2   16     8   4       8      8 
  1    4     4   0       8      0 
  0    0     1   _       _      _ 
bools_A_type
===========
***components***
----------------
num size align sum_size 
  1    1     1        1 
  2    1     1        2 
  3    1     1        3 
  4    1     1        4 
  5    4     4        8 
  6    8     8       16 
  7    8     8       24 
  8    8     8       32 
***composite***
---------------
num size align pad sum_pad offset 
  9   32     8   0       0      _ 
  8   32     8   0       0     24 
  7   24     8   0       0     16 
  6   16     8   0       0      8 
  5    8     4   0       0      4 
  4    4     1   0       0      3 
  3    3     1   0       0      2 
  2    2     1   0       0      1 
  1    1     1   0       0      0 
  0    0     1   _       _      _ 
A_sort_bools_type
===========
***components***
----------------
num size align sum_size 
  1    8     8        8 
  2    8     8       16 
  3    8     8       24 
  4    4     4       28 
  5    1     1       29 
  6    1     1       30 
  7    1     1       31 
  8    1     1       32 
***composite***
---------------
num size align pad sum_pad offset 
  9   32     8   0       0      _ 
  8   32     8   0       0     31 
  7   31     8   0       0     30 
  6   30     8   0       0     29 
  5   29     8   0       0     28 
  4   28     8   0       0     24 
  3   24     8   0       0     16 
  2   16     8   0       0      8 
  1    8     8   0       0      0 
  0    0     1   _       _      _ 
Text files modified: 
   sandbox/variadic_templates/libs/composite_storage/sandbox/layout_all.1.cpp |    13 +++++++++++++                           
   1 files changed, 13 insertions(+), 0 deletions(-)
Modified: sandbox/variadic_templates/libs/composite_storage/sandbox/layout_all.1.cpp
==============================================================================
--- sandbox/variadic_templates/libs/composite_storage/sandbox/layout_all.1.cpp	(original)
+++ sandbox/variadic_templates/libs/composite_storage/sandbox/layout_all.1.cpp	2010-10-14 11:21:56 EDT (Thu, 14 Oct 2010)
@@ -47,5 +47,18 @@
       >
     bools_A_type;
     show_layout_all_of_aligned<bools_A_type>("bools_A_type");
+        typedef 
+      boost::mpl::package
+      < double
+      , double
+      , std::string
+      , int
+      , bool
+      , bool
+      , bool
+      , bool
+      >
+    A_sort_bools_type;
+    show_layout_all_of_aligned<A_sort_bools_type>("A_sort_bools_type");
     return 0;
 }