$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-04-03 04:46:28
Vladimir Prus wrote:
> Hi Maxim,
>
>> And here are the Intel VTune results (see the sources for details):
>>
>> Creation Assignment
>> struct 13383 27358
>> boost::any 3846 331870
>> TailoredAny<> 9151 310717
>> TailoredAny<Loki::SmallObject> 3855 110022
>
> IOW, TailoredAny behaves much worse on creation in default
> configuration. It behaves much better on assignment, in tuned
> configuration. Hmm..
It might be interesting to try a modified boost::any that uses
<boost/detail/quick_allocator.hpp>.
void * operator new(std::size_t)
{
return detail::quick_allocator<this_type>::alloc();
}
void operator delete(void * p)
{
detail::quick_allocator<this_type>::dealloc(p);
}
needs to be added to any::holder<>.