|
Boost : |
Subject: Re: [boost] tuple benchmarks show marked differences from std::tuple(was Re: Interesting article on stack-based TMP
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-10-24 15:14:13
On 10/24/12 14:09, Eric Niebler wrote:
> On 10/24/2012 8:47 AM, Larry Evans wrote:
>> The attached is the output .txt file produced by running:
>>
>> http://svn.boost.org/svn/boost/sandbox/variadic_templates/sandbox/slim/test/tuple_benchmark_run.py
>>
>> while in the working directory produced by `svn checkout` on the above
>> svn directory. It shows that with std::tuple, the compile times are 4
>> times as long as with the "horizontal" tuple implementation which uses
>> no preprocessing. It also shows the "horizontal" is about the same as
>> the "vertical" which does use preprocessing. The "horizontal" trick
>> (as Douglas Gregor has explained elsewhere) is to use multiple
>> inheritance where the tuple elements are "paired" with the key to
>> retrieve them.
>
> Without seeing the different header files referenced by your benchmark
> program, or the tuple client code, it's impossible for anyone to draw
> any conclusions from your numbers.
Are they not here:
the http://svn.boost.org/svn/boost/sandbox/variadic_templates
/sandbox/slim/test/
? I meant to suggest that they could be found there with:
>> while in the working directory produced by `svn checkout` on the
>> above svn directory.
Of course maybe that was not plain enough. If so, sorry. I will
try to remember to be more explicit.
-regards,
Larry
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk