Boost logo

Boost :

Subject: Re: [boost] Interest in a container which can hold multiple data types?
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2015-05-06 08:58:18


Boris Rasin <boris <at> pointx.org> writes:

>
> On 5/5/2015 7:49 PM, Joaquin M Lopez Munoz wrote:
> > TONGARI J <tongari95 <at> gmail.com> writes:
> >
> >> If the data sequence shows some affinity, I guess an ordered
> >> tuple_vector-based sequence can provide some performance benefit in
> >> traversal (with some crafted for_each method).
> >>
> >> That is, a sequence of [AAABBB] may be traversed faster than [ABABAB] for
> >> such a container, and I believe in the later case such that the types are
> >> uniformly distributed, vector<variant> will perform better.
> > 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/0%99%85%cd%d0%b5%c1%bd%b1%e5%b5%bd%c9%c1%a1%a5%8c%b5%8d%bd%b1%b1%95%8d%d1%a5%bd%b9%cc%b5%dd%a5%d1%a0%b9%a1%d1%b5%b0(%f8%80%f8(%f8%80(%f8%81%%b9%d1%95%c9%95%cd%d1%a5%b9%9c%81%c9%95%85%90%b0%81%d1%a1%85%b9%ad%cc%81%99%bd%c8%81%d1%a1%94%81%b1%a5%b9%ad%cc%b8%81%b1%d1%a1%bd%d5%9d%a0%81%a5%b8%81%d1%a1%a5%cc%81%8d%85%cd%94%81%dd%94%81%85%c9%94%80(%f8%81%d1%85%b1%ad%a5%b9%9c%81%85%89%bd%d5%d0%81%d9%95%8d%d1%bd%c8%f1%d9%85%c9%a5%85¸()=¬°Õ¹‘•ÉÍѽ½¸$Ù”ÝÉ¥ÑÑ•¸„Íµ…±°Á•É™½Éµ…¹”Ñ•ÍЁ½˜)Ù•Ñ½ÈñÙ…É¥…¹ÐñQ̸¸¸øø…¹Í½ÉÑ•Ù•Ñ½ÈñÙ…É¥…¹ÐñQ̸¸¸øøÙ̸„)½±±•Ñ¥½¸±…Í́¡•Ñ}½±±•Ñ¥½¸ñQ̸¸¸øÍѽɥ¹œÙ…±Õ•Ì½˜Ñ¡”Í…µ”)ÑåÁ”½¹Ñ¥Õ½Õͱ䁅¹Áɽ٥‘¥¹œ„ÍÁ•¥…±¥é•™½É}•… µ•µ™Õ¸è()¡ÑÑÁÌè¼½ÝÝܹ‘ɽÁ‰½à¹½´½Ì½Åäåʼn˜Á•å˜Å¥ÑÍ佡•Ñ}½±±•Ñ¥½¸¹ÁÀý‘°ôÀ()Q¥µ¥¹œ™½È™½É}•… ½¸€Å¬´ÄÁ4•±•µ•¹ÑÌ€¡5MY €ÄȸÀ¤è()¡•Ñ}½±±•Ñ¥½¸íÙ•Ñ½É}Ù…É¥…¹ÐíͽÉÑ•‘}Ù•Ñ½É}Ù…É¥…¹Ðì)™½É}•… è(ÄÀÀÀìÀ¸ÀÈÈÔÐÔÌìÀ¸ÀàÈÈÈÌÈìÀ¸ÀàÐÀÀÐàì(ÄÀÀÀÀìÀ¸ÀÈÈäàÈÜìÀ¸ÀàÈàÈÄÐìÀ¸ÀàÈÄÌÜàì(ÄÀÀÀÀÀìÀ¸ÀÈÈäÐÐàìÀ¸ÀàÄÌÄÔìÀ¸ÀàÌäàÀÈì(ÄÀÀÀÀÀÀÀìÀ¸ÀÈÔÀÄäÌìÀ¸ÀäÀØÐäØìÀ¸ÀàÜäÈäØì()M¼Vç7W'&—6–ævǒ†WEö6öÆÆV7F–öâFöW2×V6‚&WGFW"2f÷%öV6€¦öâfV7F÷#Çf&–çCâæVVG2Fò6†V6²G—RöâV6‚—FW&F–öââ6÷'F–æp§F†RfV7F÷"6òF†BfÇVW2öbF†R6ÖRG—RÆ–RFövWF†W"FöW2æ÷@¦†fRç’–×7BöâW&f÷&Öæ6Rà ¤¦ö\:ÖâÒÌ;7W¢×\;÷ ¥FVÆVl;6æ–6


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