forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve performance of lock_non_send (openzfs#125)
Non-send locks are implemented with an async_trait, which is ergnomic to use, but unfortunately requires an additional memory allocation for every call to the async trait. This was observed to have a performance impact (from inspecting CPU flame graphs under a moderate workload). This change removes the use of async_trait, instead using a plain function to do the non-send lock.
- Loading branch information
Showing
3 changed files
with
18 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters