Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

[DPM] Fix Hashcode Bug Causing 10s Latency for 10K Neighbors #378

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

haboy52581
Copy link
Contributor

@haboy52581 haboy52581 commented Sep 7, 2020

This PR address the issue raised by Issue #376. The current hashcode generation method in NeighborInfo Class returns constant value, which is particularly unsuitable for large neighbor scenario. As the performance test by #376, 10K neighbor caused 10+s latency as the same hashCode value forced each entry to be added to the HashSet to compare all the existing entries due to hash conflicts.

This PR proposes the following change:

  • Change the hashcode algorithm for NeighborInfo Class

Copy link
Contributor

@Eric-Yuan Eric-Yuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@xieus
Copy link
Contributor

xieus commented Sep 8, 2020

@haboy52581 Please update PR title and description. You could refer to #376 in the PR but don't expect people know what #376 is about. Explicit is the key.

@xieus xieus changed the title fix 376 about hashcode [DPM] Fix Hashcode Bug Causing 10s Latency for 10K Neighbors Sep 10, 2020
@xieus xieus merged commit b66cf9c into futurewei-cloud:master Sep 10, 2020
@xieus xieus mentioned this pull request Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working perf testing Performance Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants