Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

feat: use parking_lot #39

Merged
merged 1 commit into from
Jun 27, 2022
Merged

feat: use parking_lot #39

merged 1 commit into from
Jun 27, 2022

Conversation

tustvold
Copy link
Collaborator

I noticed whilst reviewing #20 that we were using an async lock for the InMemoryStore, for no obvious reason. No long-running or async operations take place under a lock, and so an async lock will just be slower, and more complicated, than a simple synchronous lock.

This PR also switches to parking_lot as it is faster, simpler and smaller than the standard library abstractions, and is pretty ubiquitous.

@tustvold tustvold added the automerge Put in the merge queue label Jun 27, 2022
@kodiakhq kodiakhq bot merged commit cb9b0ba into main Jun 27, 2022
@jacobmarble jacobmarble deleted the use-parking-lot branch June 28, 2022 22:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Put in the merge queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants