Boost logo

Boost Users :

Subject: Re: [Boost-users] large variant performance compared (50 elements)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-07 19:51:02


AMDG

On 1/7/2011 2:45 PM, Paul wrote:
> In a project we are using variants holding shared_ptr's. These
> variants are typically 20 items large but are growing as the project
> progresses. Now it seems that each time we add elements, we fall into
> issue's regarding excessive compilation time, huge pdb file or out of
> heap space errors on the compiler or linker.
>
> I took some time to compare various approaches using variants, here
> are the results:
>
> Variant type: v1 Foo logic:C (copy variant using assignment operator)
> <snip>
>
> Variant type: v2 Foo logic:C
> Obj size: 80.6MB
> Exe size: 356KB
> Pdb size: 13.6MB
> Build time: 8:46
> Peak commit: 1.4GB

I've duplicated this behavior (using VS 2008) with the
attached test which should build against an unmodified
Boost distribution.

In Christ,
Steven Watanabe




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net