Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-09 01:08:41


christopher diggins wrote:

> I have developed a type very similar to boost::any which requires less
> memory and significantly reduces the number of allocations /
> deallocations. If anyone is interested I have posted a brief article about
> it at CodeProject http://www.codeproject.com/useritems/dynamic_typing.asp
> and I have uploaded the source to the vault (
> http://boost-sandbox.sourceforge.net/vault/index.php ). Is there any
> interest?

If the trick is to use "void*" pointer to data for storing data when it's
small, then:

- it's interesting to see performance comparison for any<string>, or
any<some_other_large_class>
- can't this be just patch to boost::any, as opposed to completely different
class?

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk