Optimization, 'reserve' is done in decompression code
@@ -319,7 +319,6 @@ namespace carto { namespace mvt {
_transform(cglib::mat3x3<float>::identity()), _clipBox(cglib::vec2<float>(-0.1f, -0.1f), cglib::vec2<float>(1.1f, 1.1f)), _buffer(0), _globalIdOverride(false), _tileIdOffset(0), _tile(), _layerMap(), _logger(std::move(logger))
{
std::vector<unsigned char> uncompressedData;
- uncompressedData.reserve(data.size());
if (miniz::inflate_gzip(data.data(), data.size(), uncompressedData)) {
protobuf::message tileMsg(uncompressedData.data(), uncompressedData.size());
_tile = std::make_shared<vector_tile::Tile>(tileMsg);
