$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [optional] memory use for optional refs and ptrs
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-10-06 14:19:21
On 10/06/10 13:05, Larry Evans wrote:
[snip]
> A copy of the code posted here:
>
> http://article.gmane.org/gmane.comp.lib.boost.devel/209212
>
> followed by:
[snip]
Further experimentation resulted in the attached which produces output:
sizeof(A)=32
sizeof(B)=56
sizeof(A_pairs)=56
sizeof(A_bools)=40
sizeof(bools_A)=32
sizeof(chars_A)=32
So, gathering all tags at start (bools_A and chars_A) saves
the most space.