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

feat: traverse the target directory instead of intercepting the linker to collect assets #3228

Merged
merged 4 commits into from
Nov 17, 2024

Conversation

jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented Nov 17, 2024

it came to me in a dream...

instead of intercepting the linker, simply traverse the deps and incremental directories for their artifacts.

This drastically speeds up asset bundling times and is much nicer when used with LTO since we are basically forced to compile twice with LTO.

This is also generally better for folks who run cargo check with our profiles wrt cache thrashing.

Fixes: #3148

@jkelleyrtp
Copy link
Member Author

jkelleyrtp commented Nov 17, 2024

Tested against android/ios/web 👍

Builds are so much faster now. Would like to add caching of the rlib parsing but it's already sooo fast. In the future maybe we can do it in parallel and/or cache the .rlib parsing since it's likely that only the .os will change.

@jkelleyrtp jkelleyrtp merged commit 017478d into main Nov 17, 2024
3 checks passed
@jkelleyrtp jkelleyrtp deleted the jk/save-incs-approach branch November 17, 2024 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant