Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

dashmap -> rwlock<hashmap> for rewrites #24327

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

jeffwashington
Copy link
Contributor

@jeffwashington jeffwashington commented Apr 13, 2022

Problem

This is written once in a non-contentious part of code, but read many times independent of the write.
Makes more sense as rwlock hashmap.

Summary of Changes

Fixes #

Copy link
Contributor

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm

@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #24327 (f25cc8e) into master (e13efa0) will increase coverage by 12.0%.
The diff coverage is 66.6%.

@@             Coverage Diff             @@
##           master   #24327       +/-   ##
===========================================
+ Coverage    70.0%    82.1%    +12.0%     
===========================================
  Files          36      582      +546     
  Lines        2237   162043   +159806     
  Branches      315        0      -315     
===========================================
+ Hits         1568   133109   +131541     
- Misses        559    28934    +28375     
+ Partials      110        0      -110     

@jeffwashington jeffwashington merged commit a91b0c8 into solana-labs:master Apr 14, 2022
jeffwashington added a commit to jeffwashington/solana that referenced this pull request Jun 29, 2022
jeffwashington added a commit to jeffwashington/solana that referenced this pull request Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants