Skip to content

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
Development

Successfully merging this pull request may close these issues.

Fullstack 0.6.0-alpha.3: (When custom rust flags) Build failed: Failed to parse asset manifest from "/var/folders...
1 participant