Skip to content

Remove x86intrin.h dependency from fd_util.h #4997

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
merged 3 commits into from
May 2, 2025
Merged

Conversation

ripatel-fd
Copy link
Contributor

@ripatel-fd ripatel-fd commented May 2, 2025

Changes code so that including fd_util.h no longer includes <x86intrin.h> and friends.

The x86 intrinsics are about 70k lines of headers, which makes up the majority of compile-time for small compile units.

make -j lib CC=gcc-14:
Before: 0m28.815s
After: 0m26.495s

make -j lib=CC=clang:
Before: 0m21.672s
After: 0m19.811s

All tiles ended up using getrandom(2)
@ripatel-fd ripatel-fd force-pushed the ripatel/build-times branch from b4fa799 to 453930c Compare May 2, 2025 12:58
@ripatel-fd ripatel-fd force-pushed the ripatel/build-times branch from 453930c to af72d97 Compare May 2, 2025 13:08
@mmcgee-jump mmcgee-jump added this pull request to the merge queue May 2, 2025
Merged via the queue into main with commit 44908c0 May 2, 2025
9 checks passed
@mmcgee-jump mmcgee-jump deleted the ripatel/build-times branch May 2, 2025 15:09
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