Skip to content
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

LocationCache ConcurrentDict lock contention fix #558

Merged
merged 6 commits into from
Jul 17, 2019

Conversation

kirankumarkolli
Copy link
Member

Description

LocationCache used ConcurrentDictionay.Count which serializes through lock resulting in high resource contention.

Usage changes from ConcurrentDictionay.Count to ConcurrentDictionay.Any() which is lock free but not a snapshot.
Order of conditions reversed avoiding ConcurrentDictionay.Any() evaluation on every call.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

closes #553

@kirankumarkolli
Copy link
Member Author

V2 fix is in master is under PR review

j82w
j82w previously approved these changes Jul 16, 2019
simplynaveen20
simplynaveen20 previously approved these changes Jul 16, 2019
@kirankumarkolli kirankumarkolli dismissed stale reviews from simplynaveen20 and j82w via 471e119 July 16, 2019 18:22
stephenjust
stephenjust previously approved these changes Jul 16, 2019
Copy link

@stephenjust stephenjust 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

changelog.md Outdated Show resolved Hide resolved
changelog.md Outdated Show resolved Hide resolved
@kirankumarkolli kirankumarkolli merged commit 245e9bb into master Jul 17, 2019
@kirankumarkolli kirankumarkolli deleted the users/kirankk/GEP_LOCK_Contenton branch July 17, 2019 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lock contention in LocationCache
5 participants