-
Notifications
You must be signed in to change notification settings - Fork 186
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
cleanup locking, add named mutex and make cache atomically #1212
Conversation
add a cached named rwlock pkg use sync.map in the cache pkg use named rwlock in indexer pkg use sync.map in indexer pkg remove husky
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some input for the changelog. Code itself looks cool. 👍
I'd love to see unit tests for ocis-pkg/indexer/map.go though 😁
rollback indexer map use sync.pool for cache entries add tests for cache remove main locks from nrwmutex and use sync.map and sync.pool instead bump dockerfile go version
refactor cache to use atomic uint
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the brainpower that went into this!
took the liberty to edit the title to reduce the scope, as we're not removing locking per-se, only from the handlers. |
looks like it needs a rebase |
update changelog
fe59240
to
d7986b4
Compare
Kudos, SonarCloud Quality Gate passed! |
fixes: #966