mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-03 00:45:41 +02:00
Be more specific about the string hash function
This commit is contained in:
@@ -593,7 +593,7 @@ std::string mvt_value::toString() const {
|
||||
}
|
||||
|
||||
void mvt_layer::tag(mvt_feature &feature, std::string const &key, mvt_value const &value) {
|
||||
size_t key_hash = std::hash<std::string>()(key) % dedup.size();
|
||||
size_t key_hash = fnv1a(key) % dedup.size();
|
||||
if (dedup[key_hash] >= 0 &&
|
||||
dedup[key_hash] < (ssize_t) keys.size() &&
|
||||
keys[dedup[key_hash]] == key) {
|
||||
|
||||
Reference in New Issue
Block a user