+ use std::deque instead of std::vector and avoid
expenssive re-alloc's
This commit is contained in:
parent
1c42f48613
commit
dc19a6ab27
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
|||
#include <mapnik/feature_layer_desc.hpp>
|
||||
|
||||
// stl
|
||||
#include <vector>
|
||||
#include <deque>
|
||||
|
||||
namespace mapnik {
|
||||
|
||||
|
@ -48,7 +48,7 @@ public:
|
|||
size_t size() const;
|
||||
void clear();
|
||||
private:
|
||||
std::vector<feature_ptr> features_;
|
||||
std::deque<feature_ptr> features_;
|
||||
mapnik::layer_descriptor desc_;
|
||||
datasource::datasource_t type_;
|
||||
bool bbox_check_;
|
||||
|
|
Loading…
Add table
Reference in a new issue