Improve the memory spike during tile construction

This commit is contained in:
Erica Fischer
2025-01-31 09:00:43 -08:00
parent 583fc3744a
commit c2e8da0881
2 changed files with 20 additions and 9 deletions
+3
View File
@@ -2574,6 +2574,9 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
layer.tag(feature, *layer_features[x]->full_keys[a], v);
}
layer_features[x]->full_keys.clear();
layer_features[x]->full_values.clear();
if (additional[A_CALCULATE_FEATURE_DENSITY]) {
int glow = 255;
if (layer_features[x]->spacing > 0) {