mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
Add map reset to llil4map.cc.
This commit is contained in:
@@ -416,6 +416,9 @@ int main(int argc, char* argv[])
|
||||
auto it = I[i];
|
||||
for (auto& x : set)
|
||||
*it++ = std::make_pair(std::move(const_cast<str_type&>(x.first)), x.second);
|
||||
|
||||
// reset the set (no longer needed) to reclaim memory early
|
||||
set = map_str_int_type::EmbeddedSet();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user