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

Copy /target directory; avoid rebuilding from scratch in each scratch dir #403

Open
sourcefrog opened this issue Aug 28, 2024 · 0 comments
Labels
copy_tree Copying trees to build dirs performance Making cargo mutants faster

Comments

@sourcefrog
Copy link
Owner

Today, cargo-mutants does a from-scratch build in each scratch directory. In fact, it doesn't even copy /target because I found that even when it was copied, we still built from scratch, so the copy is just a waste of time.

I'm not sure what is causing cargo to rebuild.

I already tried setting file mtimes and that does not seem to be enough.

@jeremyBanks suggested using --remap-path-prefix like in https://github.com/denoland/wasmbuild/pull/136/files and that sounds very promising but I do not yet have it working.

rust-lang/cargo#2904 has some information on how to get trace output from cargo explaining why it rebuilds things.

@sourcefrog sourcefrog added the performance Making cargo mutants faster label Aug 28, 2024
@sourcefrog sourcefrog added the copy_tree Copying trees to build dirs label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
copy_tree Copying trees to build dirs performance Making cargo mutants faster
Projects
None yet
Development

No branches or pull requests

1 participant