diff --git a/include/facet_index.h b/include/facet_index.h index 4293f214..651b15a9 100644 --- a/include/facet_index.h +++ b/include/facet_index.h @@ -109,7 +109,7 @@ private: // field -> facet_index std::unordered_map facet_field_map; - std::unordered_map index_to_int64_map; + spp::sparse_hash_map fhash_to_int64_map; // auto incrementing ID that is assigned to each unique facet value string uint32_t next_facet_id = 0; diff --git a/src/facet_index.cpp b/src/facet_index.cpp index 2a4fc993..37508c6d 100644 --- a/src/facet_index.cpp +++ b/src/facet_index.cpp @@ -40,7 +40,7 @@ void facet_index_t::insert(const std::string& field_name,std::unordered_mapsecond; }