Subject: Re: [boost] [container] boost::container::vector, hybrid_vector, and performance
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2013-02-12 18:14:23
Ion Gaztañaga wrote:
> El 12/02/2013 17:15, igaztanaga_at_[hidden] escribió:
>> El 12/02/2013 16:15, Andrew Hundt escribió:
>>> The OS X + clang version was on 1.52, Adam will need to chime in for the
I was testing using Boost 1.52.
> Adam, Andrew, I've committed changeset #82846, adding to trunk some
> performance improvements in vector's constructors. It should improve a
> bit boost::container::vector results.
Ok, I'll try to find some time to test it.
> I saw that varray has some optimizations for trivial types (dispatching
> to memcpy) that boost::container misses. Maybe a fairer comparison would
> be to use a simple class instead of std::size_t as the basic type.
> Something like "copyable_int" in boost/libs/container/movable_int.hpp:
In my test non-POD types were stored in containers, i.e. Box and
std::pair<Box, ptr> where Box is box<point<double, 2, cartesian> >.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk