Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: 🤖 make parking_lot dependency optional #265

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

Open
IWANABETHATGUY wants to merge 1 commit into servo:main
base: main
Choose a base branch
Loading
from IWANABETHATGUY:chore/optional-parking-lot

Conversation

@IWANABETHATGUY
Copy link

@IWANABETHATGUY IWANABETHATGUY commented Oct 11, 2022
edited
Loading

Summary

parking_lot is not always the best choice after rust stable 1.62 https://blog.rust-lang.org/2022/06/30/Rust-1.62.0.html#thinner-faster-mutexes-on-linux

  1. Make parking_lot an optional dependency
  2. Adding a new feature parking_lot_support to let user enable the optional dependency parking_lot
  3. Adding the feature parking_lot_support to the default_features list to avoid breaking changes.

akx, ghishadow, and Pat-Lafon reacted with thumbs up emoji
Copy link
Author

Here is the benchmark for current std::sync::Mutex rust-lang/rust#95035 (comment), It is 10 times faster than parking_lot::Mutex when the extreme contention scenario, although not all platforms have been migrated to Mutex with futex based ones (e.g. MacOs ), more details you could refer to rust-lang/rust#93740

Copy link
Contributor

☔ The latest upstream changes (presumably #268) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /