Replies: 1 comment
-
close |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to replace std::unordered_map with absl::flat_hash_map to speed up traverse all key/value pairs. But when I replace std::unordered_map with absl::flat_hash_map, it's much slower. I think there is something wrong. Here is my codes where absl::flat_hash_map is used.
I only use absl::flat_hash_map this way:
the following is related codes:
update time: 2534ms vs 1213ms
iterate through all key/value: 9802ms vs 8211ms
the iterate code:
Beta Was this translation helpful? Give feedback.
All reactions