-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Ensure that queries only return Copy types. #93511
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
Conversation
r? @wesleywiser (rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit a5ca17e836e29e0a4281c5c9eae26ed2dc6eb64f with merge 3f8b0271187f685af17c242eca5d5404bf87cd8b... |
☀️ Try build successful - checks-actions |
Queued 3f8b0271187f685af17c242eca5d5404bf87cd8b with parent 24b8bb1, future comparison URL. |
Finished benchmarking commit (3f8b0271187f685af17c242eca5d5404bf87cd8b): comparison url. Summary: This benchmark run shows 20 relevant improvements 🎉 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. @bors rollup=never |
Amazing. Some cleanup ideas, but tbh, this lgtm, so whatever you feel like :) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
@cjgillot: 🔑 Insufficient privileges: not in try users |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit fd9778b6c1dbd5391bd0fe926f80dfcc5f37db35 with merge 6a4cc1f5ef07bdc1d8370ad2566352a47464d027... |
What uh... gimme a bit, we'll have that sorted out Uh... I have no clue, if it fails again, ping infra I guess? |
@bors r=oli-obk |
📌 Commit 8edd32c has been approved by |
⌛ Testing commit 8edd32c with merge 4bf1f1cdf536cff794864a3bf90640de0dd9b058... |
💥 Test timed out |
@bors retry timeout |
☀️ Test successful - checks-actions |
Finished benchmarking commit (56cd04a): comparison url. Summary: This benchmark run shows 15 relevant improvements 🎉 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Ensure that queries only return Copy types. This should pervent the perf footgun of returning a result with an expensive `Clone` impl (like a `Vec` of a hash map). I went for the stupid solution of allocating on an arena everything that was not `Copy`. Some query results could be made Copy easily, but I did not really investigate.
This should pervent the perf footgun of returning a result with an expensive
Clone
impl (like aVec
of a hash map).I went for the stupid solution of allocating on an arena everything that was not
Copy
. Some query results could be made Copy easily, but I did not really investigate.