Skip to content

intrinsic-test: combine rust files for faster compilation #1863

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
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

folkertdev
Copy link
Contributor

@folkertdev folkertdev commented Jul 11, 2025

This PR combines the rust intrinsics into number-of-cores crates, to optimize for parallelism.

It also changes the code emission strategy for tests with const-generics. Rather than duplicating test logic, we now build a big array of specialized function pointers, and iterate over this array. This logic is a bit weird to continue to match the C output order.

Locally this brings the aarch64_be docker run down from ~120s to ~85s.

@folkertdev folkertdev force-pushed the combine-rust-files branch from cbd8273 to f22e635 Compare July 18, 2025 23:56
@folkertdev folkertdev force-pushed the combine-rust-files branch from f22e635 to e0a2cf1 Compare July 19, 2025 00:12
@folkertdev folkertdev marked this pull request as ready for review July 19, 2025 00:23
@rustbot
Copy link
Collaborator

rustbot commented Jul 19, 2025

r? @sayantn

rustbot has assigned @sayantn.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

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

Successfully merging this pull request may close these issues.

3 participants