-
Notifications
You must be signed in to change notification settings - Fork 442
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
crate_universe: Only compile label regex once. #2751
Conversation
Can someone please push the correct, re-vendored dependencies here? I spent now 30min trying to get this to work locally, but it's not working for me. |
Revendoring the dependencies helped with some CI jobs, but the BCR jobs still complain about a lockfile being out of date. I ran the suggested command locally in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this! I think there are some extra things you'll need manually to update on the bzlmod side of this. See #2368
I hit this when profiling for something else, we spent 1.1sec of 1.3sec of `cargo-bazel generate` compiling this regular expression. It seems to be quite bad on the regex compiler, as even compiling it once takes 8ms.
Thanks! CI finally passed on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! For this change I probably would have just regenerated dependencies for crate_universe
directly but thank you for going above and beyond here 😄
I hit this when profiling for something else, we spent 1.1sec of 1.3sec of
cargo-bazel generate
compiling this regular expression. It seems to be quite bad on the regex compiler, as even compiling it once takes 8ms.I had to add the
once_cell
crate to unwrap the Result type - the corresponding stdlib function is still nightly-only unfortunately. However, that crate was already in the transitive dependency tree, so it's a net-same change.