Boost logo

Boost :

From: christopher diggins (cdiggins_at_[hidden])
Date: 2005-08-09 09:17:48

----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>
> 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>

Another part of the optimization, is to avoid reallocating when reassigning
any a different value with the same type.

On a related note: several people have suggested that a buffer should be
used with an arbitrary size set at compile time, which would help
significantly for container types.

> - can't this be just patch to boost::any, as opposed to completely
> different
> class?

What does submitting a patch entail? Is that the way to go if the
implementation is completely different?

- Chriostopher Diggins

Boost list run by bdawes at, gregod at, cpdaniel at, john at