Reduce the chance of hash collisions

This commit is contained in:
Erica Fischer
2024-02-02 13:00:55 -08:00
parent ef66f39aa5
commit 93e0db9fd9
5 changed files with 55 additions and 48 deletions
+2 -1
View File
@@ -175,7 +175,8 @@ struct mvt_layer {
void tag(mvt_feature &feature, std::string const &key, mvt_value const &value);
// For tracking the key-value constants already used in this layer
std::vector<ssize_t> dedup = std::vector<ssize_t>(65536, -1);
std::vector<ssize_t> key_dedup = std::vector<ssize_t>(65536, -1);
std::vector<ssize_t> value_dedup = std::vector<ssize_t>(65536, -1);
};
struct mvt_tile {