[Tile-serving] [osm2pgsql] use vectors of pointers in middle-ram to reduce memory footprint (#394)

Paul Norman notifications at github.com
Wed Jul 15 21:33:30 UTC 2015


>      };
>  
> -    std::vector<std::vector<ramWay> > ways;
> -    std::vector<std::vector<ramRel> > rels;
> +    std::vector<std::unique_ptr<std::vector<std::unique_ptr<ramWay> > > > ways;

this is a vector of pointers to vectors of pointers to ways?

I'm wondering if it makes sense to typedef `std::vector<std::unique_ptr<ramWay> >` for clarity that it's a block of ways

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/394/files#r34732282
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150715/281e58f1/attachment.html>


More information about the Tile-serving mailing list