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<>. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost