Don't enable parallel compilation in the bench API by default#4944
Don't enable parallel compilation in the bench API by default#4944fitzgen wants to merge 1 commit into
Conversation
And add a feature to turn it on if desired.
|
Hmm something is enabling |
|
I was just noticing earlier that I think the cause is that #4911 made I'm very much in favor of disabling parallel compilation by default for benchmarking, so let's figure out how to get the web of features right. You can get cargo to tell you what's pulling in a particular dependency with e.g. |
alexcrichton
left a comment
There was a problem hiding this comment.
I mentioned this in chat as well but I'd probably recommend using Config::parallel_compilation instead of a compile-time feature since it'll be easier to manage.
cargodoesn't provide great visibility into what is turning on what features here.
I mentioned this in chat as well but for posterity what I recommended to debug this was:
$ cargo tree -i wasmtime -e featureswhich shows all the crates that depend on wasmtime (inverted format) with features in the dependency edges.
|
@fitzgen, if a runtime flag is needed, I had submitted #4207 for that purpose (along with an |
|
If I'm understanding #4207 correctly, it looks like it's worth merging but isn't necessary for non-WASI options like the recent |
|
I think we don't want to rely on only a runtime flag because the stacks are still not great when profiling if we do the runtime flag. I think we will want to make the CLI flags crate not enable a bunch of features and maybe make |
No, it actually makes it possible to use any of the |
Could you expand on this? The flag is checked here so this shouldn't affect stacks other than having a |
I agree with that sentiment (not wanting to wade through |
|
I guess the broken stacks that I'm seeing now are unrelated to rayon, its all in vec iter stuff but it isn't all the same so the flamegraphs and top down views such are kinda unusable. I guess we can close this PR tho. |
And add a feature to turn it on if desired.