Skip to content

Replace Spinlock with parking_lot::Mutex #468

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

Merged
merged 2 commits into from
Jun 12, 2020

Conversation

hunterlxt
Copy link
Member

@hunterlxt hunterlxt commented Jun 12, 2020

After testing, the performance of parking_lot is better than Spinlock or std::sync::Mutex

Note: Only replace the lock in grpcio, the lock in the example remains the original usage

Signed-off-by: Xintao [email protected]

@hunterlxt hunterlxt self-assigned this Jun 12, 2020
@hunterlxt hunterlxt requested review from BusyJay and hicqu June 12, 2020 09:03
Signed-off-by: Xintao <[email protected]>
@BusyJay BusyJay merged commit 253fa3f into tikv:master Jun 12, 2020
@hunterlxt hunterlxt deleted the XT/upgrade-spinlock branch June 12, 2020 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants