$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] stack-allocated STL-containers
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2009-08-13 14:21:23
Stefan Strasser wrote:
> I recently ran into the problem that a local container on the stack, which was
> likely to be very small, but its size was still not known at compile-time,
> consumed a considerable amount of runtime because of allocation/deallocation.
> [...]
I'd try to find out if the std::vector of that implementation
doesn't provide short array optimisation.
Peraps STLport does, I'm not sure.
That would solve this issue.
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org