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