-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use template hgetall, because we will tune the return types of library functions #759
Conversation
can you point to changes in swss common which will address this? |
@kcudnik we change the returned type of hgetall by https://github.com/Azure/sonic-swss-common/pull/437/files#diff-6bae96c20cc412d0c97e2a241f0cdc8c06d1a90fc13697faf1c8e43f28d38da3R181 This PR will work fine with both old code and new code in sonic-swss-common. |
why there is change from unordered_map to map? map is slower nlogn to sort items, and we dont need sort at hgetall, it will slow things down when we will have 100k entreis in db, that will matter, please reverse that to unordered_map |
Offline discussed. In this PR, sairedis does not change to map at all. It will call a template version of hgetall, which accepts a container inserter. So sairedis is still using unordered_map. |
Retest vs please |
the four test failure are expected. |
why those specific 4 tests are allowed to fail ? |
it should not, @daall is working on to triage the 4 failed test cases. |
…y functions (sonic-net#759) The template version of hgetall() could work with either map or unordered_map.
The template version of hgetall() could work with either map or unordered_map.