This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move mutex guard from inside a loop (#29)
# What ❔ This PR is implementing a small performance improvement in the device allocation code by moving a mutex guard form inside a loop to the outside. ## Why ❔ Acquiring mutex in a loop is suboptimal. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Code has been formatted via `cargo fmt` and linted with `cargo check`.
- Loading branch information