Boost logo

Boost Users :

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


AMDG

On 1/8/2011 2:48 PM, Paul wrote:
> I guess as was to fast there in being optimistic ;)
>
> It seems there is another performance issue when i extend the number
> of types further to 75 (on the project we expect to grow to +/- 60
> types).
>
> typedef boost::mpl::vector75<
> boost::shared_ptr<C1>,
> boost::shared_ptr<C2>,
> boost::shared_ptr<C3>,
> ...
>
> My machine simply runs out of memory (commit 3.0GB) while the compiler
> keeps consuming 100% for minutes...
>
> From what i can see now is that no combination (adding boost::blank or
> not, patching variant.hpp or not) seems to succeed to compile and link
> <1min and <1GB or ram.
>
> A test using boost::blank + the patched variant just finished on 4:00min.

Does the cost increase continuously, with the number of elements?

> Steven, can you maybe invest with your tool where the
> load/instantiations are coming from?
>

Maybe in a few days. boost::mpl::vector75 doesn't exist
without some extra work.

> PS: I have downloaded your tool with svn, i intend to test/use it for
> myself as well. ;)

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