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

use threads instead of futures in build.rs #484

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
phil-opp merged 2 commits into rust-osdev:main from Freax13:enhancement/build-sync
Jan 19, 2025

Conversation

Copy link
Member

@Freax13 Freax13 commented Jan 19, 2025

There's no inherent reason why we should use future-based concurrency in build.rs. We don't spawn many futures and we don't make use of any of the nice structures made possible by structured concurrency. The downside of using futures is that we have to pull in a bunch of dependencies. Switching to sync code and removing the dependencies resulted in a nice performance improvement (35s -> 30s). Also, it's just good practice to reduce the number of unneeded dependencies especially if some of them are unmaintained.

Closes #483

There's no inherent reason why we should use future-based concurrency
in build.rs. We don't spawn many futures and we don't make use of any
of the nice patterns made possible by structured concurrency. The
downside of using futures is that we have to pull in a bunch of
dependencies. Switching to sync code and removing the dependencies
resulted in a nice performance improvement (35s -> 30s). Also, it's just
good practice to reduce the number of unneeded dependencies especially
if some of them are unmaintained.
macos-12 has been removed from GitHub actions.
Copy link
Member Author

Freax13 commented Jan 19, 2025

@phil-opp please remove the "Test (macos-12)" required check in the repository settings. The macos-12 platform no longer exists. I don't have access to these settings for this repo.

Copy link
Member

Done! I also gave you full access to the repo now.

Freax13 reacted with heart emoji

Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks a lot!

@phil-opp phil-opp merged commit 8165441 into rust-osdev:main Jan 19, 2025
7 of 8 checks passed
@phil-opp phil-opp mentioned this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@phil-opp phil-opp phil-opp approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Dependency instant is unmaintained
2 participants

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