
christopher diggins wrote:
----- Original Message ----- From: "Vladimir Prus" <ghost@cs.msu.su>
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.
Ok.
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?
Well, you submit a patch and it's either applied or not ;-)
Is that the way to go if the implementation is completely different?
That's the question! Can your optimization ideas be formed as small changes to existing boost::any, as opposed to completely different implementation? - Volodya