-
Notifications
You must be signed in to change notification settings - Fork 442
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
Optimize jobserver try_acquire
#1037
Commits on Apr 18, 2024
-
Bump dep jobserver from 0.1.20 to 0.1.30
Signed-off-by: Jiahao XU <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0304e07 - Browse repository at this point
Copy the full SHA 0304e07View commit details -
Add
parallel::OnceLock
impl copied fromstd::sync::OnceLock
Signed-off-by: Jiahao XU <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 173e649 - Browse repository at this point
Copy the full SHA 173e649View commit details -
Optimize
inherited_jobserver
acquireFirst try `jobserver::Client::try_acquire`, which will work: - If a fifo is used as jobserver - On linux and: - preadv2 with non-blocking read available (>=5.6) - /proc is available - On Windows - On wasm if not, we will simply fallback to help thread implementation, spawning one thread to maintain compatibility with other platforms. Signed-off-by: Jiahao XU <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e9ce514 - Browse repository at this point
Copy the full SHA e9ce514View commit details -
Use
OnceLock
inJobTokenServer::new
Also impls `Send`, `Sync`, `RefUnwindSafe` and `UnwindSafed` when the `T` meets the criterior. Signed-off-by: Jiahao XU <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4e9adfe - Browse repository at this point
Copy the full SHA 4e9adfeView commit details -
Replace vendored
OnceLock
with deponce_cell
Signed-off-by: Jiahao XU <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2d3c859 - Browse repository at this point
Copy the full SHA 2d3c859View commit details -
Fix dep:
once_cell
is needed on all targetswhenever feature parallel is enabled. Signed-off-by: Jiahao XU <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3361c4d - Browse repository at this point
Copy the full SHA 3361c4dView commit details -
Refactor:
ActiveJobTokenServer::new
no longer returnsResult
There is no need to, it never fails. Signed-off-by: Jiahao XU <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2847b2c - Browse repository at this point
Copy the full SHA 2847b2cView commit details
Commits on Apr 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 852df91 - Browse repository at this point
Copy the full SHA 852df91View commit details