|
Boost : |
Subject: Re: [boost] [MultiIndex] Memory consumption of ordered indices
From: Rob Stewart (rob.stewart_at_[hidden])
Date: 2015-02-20 17:31:44
On February 20, 2015 4:59:07 PM EST, Olaf van der Spek <ml_at_[hidden]> wrote:
> On Fri, Feb 20, 2015 at 3:01 PM, Joaquin M Lopez Munoz
> <joaquin_at_[hidden]> wrote:
> > Olaf van der Spek <ml <at> vdspek.org> writes:
> >
> >> In that case for a write-only data structure an external ptr vector
> >> would make more sense wouldn't it?
> >
> > What's a "write-only" structure supposed to be useful for? Anyway, s
> > sorted vector is definitely better in terms of memory consumption
> than
> > a single-index multi_index_container.
>
> The data structure is filled once (data read from DB) and then queried
> lots.
> Perhaps a flat_map would be better suited.
Perhaps you mean "write once" rather than "write only"?
___
Rob
(Sent from my portable computation engine)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk