Skip to content

Conversation

analytically
Copy link
Contributor

Replace the manually synchronized map with sync.Map in the Repository implementation to improve concurrent access performance.

The refactoring:

  • Removes explicit locking/unlocking code
  • Adapts methods to use sync.Map's API (Store, Load, Range)
  • Preserves all existing functionality including parent-child inheritance
  • Maintains backward compatibility with existing tests, added one test

…r better concurrency

Replace the manually synchronized map with sync.Map in the Repository
implementation to improve concurrent access performance.

The refactoring:
- Removes explicit locking/unlocking code
- Adapts methods to use sync.Map's API (Store, Load, Range)
- Preserves all existing functionality including parent-child inheritance
- Maintains backward compatibility with existing tests, added one test

Signed-off-by: Mathias Bogaert <mathias.bogaert@gmail.com>
@taylorsilva taylorsilva merged commit 7a47ee2 into concourse:master Jul 4, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Pull Requests Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants