Skip to content
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

Long Build Times #5

Open
martinmortsell opened this issue Dec 22, 2023 · 2 comments
Open

Long Build Times #5

martinmortsell opened this issue Dec 22, 2023 · 2 comments

Comments

@martinmortsell
Copy link

martinmortsell commented Dec 22, 2023

The new way the pacs are generated leads to a noticable increase in build time. A quick test on my laptop gave me 4:15 with the new pacs and 2:49 with the old ones. EDIT: building the HAL, that is.

It seems the main difference is that only the SVDs and build.rs is published to crates.io, and not the actual source code.
Is there a reason for this?
To me it feels like you might as well generate the full source before publishing, which should bring compile times down to what they were before.

@michalfita
Copy link
Collaborator

GitHub is notoriously bad at handling so many files, so this guarantees PRs aren't broken. My build times are better, but I mostly use multicore machines. And they shouldn't rebuild.

@michalfita
Copy link
Collaborator

Second argument is that svd2rust now has extra features, like generics or atomics; in this user-side model we can turn them on and off.

To speed up builds I suggest having sscache up and running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants