|
Boost Users : |
Subject: Re: [Boost-users] [boost.any] Inline allocation of small objects in any.
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-02-09 02:37:08
On 8 February 2011 20:15, Adarsh Soodan <adarshsoodan_at_[hidden]> wrote:
> The frequent heap usage of boost::any was problematic to me for small
> object sizes. So I made a small tweak in boost::any which provides inline
> allocation of objects smaller than a certain template defined size. It
> practically eliminated the performance overhead of heap allocation and
> deallocation in my project while providing all benefits of boost::any.
>
What are your exception safety guarantees compared with the current
implementation of boost::any?
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
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