-
Notifications
You must be signed in to change notification settings - Fork 225
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
Adopt windows-rs #311
Adopt windows-rs #311
Conversation
bf79b74
to
1f94288
Compare
Several other crates also compile faster in the second compile. Are you sure this isn't the cpu changing frequency? |
It is deterministically faster. |
Thanks! |
Note that this might be an MSRV bump (at least when the |
`parking_lot` now uses windows-rs's `windows-sys` crate, officially developed and vetted by Microsoft - the bindings are autogenerated from metadata and faster to compile too. See also Amanieu/parking_lot#311.
`parking_lot` now uses windows-rs's `windows-sys` crate, officially developed and vetted by Microsoft - the bindings are autogenerated from metadata and faster to compile too. See also Amanieu/parking_lot#311.
`parking_lot` now uses windows-rs's `windows-sys` crate, officially developed and vetted by Microsoft - the bindings are autogenerated from metadata and faster to compile too. See also Amanieu/parking_lot#311.
`parking_lot` now uses windows-rs's `windows-sys` crate, officially developed and vetted by Microsoft - the bindings are autogenerated from metadata and faster to compile too. See also Amanieu/parking_lot#311.
Change from using the unofficial winapi bindings, to using the official windows bindings from Microsoft.
![winapi_parking_lot](https://user-images.githubusercontent.com/26170289/148648990-cb504f50-63c6-41d5-87f8-b110186b3b59.png)
![windows_parking_lot](https://user-images.githubusercontent.com/26170289/148648996-6eab574b-fe82-4d18-b645-e939312fafe5.png)
I have also a PR open at winit: rust-windowing/winit#2057
They suggested that parking_lot (dependency of winit) should also be switched over to windows-rs.
For this port I am using the more lightweight and lower level windows-sys (which is closer to winapi).
For me build times are faster with windows-rs 🎉
Before(winapi 1.19s, total time 2.2s):
After(windows-sys 0.94s, total time 1.7s):