
On 5/5/2015 11:59 PM, JoaquĆn M Lopez Munoz wrote:
Boris Rasin
writes: On 5/5/2015 7:49 PM, Joaquin M Lopez Munoz wrote:
I wrote something on this some time ago, maybe worth having a look at:
http://bannalia.blogspot.com/2014/05/fast-polymorphic-collections.html http://bannalia.blogspot.com/2014/05/fast-polymorphic-collections-with.html
Interesting read, thanks for the links. Although in this case we are talking about vector<variant> which stores data by value. poly_collection does store data by value. Also, it is more space-efficient than vector<variant>.
Yes, I know. I was just pointing out the fact that in your articles you explore performance differences between a container with polymorphic storage and container with storage by value, while we here were discussing possible performance differences between two containers storing data by value.