-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Simplify encoder and decoder #83273
Simplify encoder and decoder #83273
Conversation
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit ccef537b0366d1ced16cf212d385aa1707a5794f with merge bf696c7a499ba76acd374ad810be4e05f17460b9... |
☀️ Try build successful - checks-actions |
Queued bf696c7a499ba76acd374ad810be4e05f17460b9 with parent 9d0446f, future comparison URL. |
Finished benchmarking try commit (bf696c7a499ba76acd374ad810be4e05f17460b9): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
This provides a decent improvement on max-rss, but regresses on instructions. |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 637253f5263e9d8abf2b522553c64ab80d53f358 with merge 0f5649699bc49e9345864d7b99c11697dd8506f3... |
☀️ Try build successful - checks-actions |
Queued 0f5649699bc49e9345864d7b99c11697dd8506f3 with parent 1705a7d, future comparison URL. |
Finished benchmarking try commit (0f5649699bc49e9345864d7b99c11697dd8506f3): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
Still appears to be a substantial regression, unfortunately. |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 11b3409 with merge 58740d89a14c455cd96c58a6dc4a3478d8cb854c... |
☀️ Try build successful - checks-actions |
Queued 58740d89a14c455cd96c58a6dc4a3478d8cb854c with parent 9f4bc3e, future comparison URL. |
Finished benchmarking try commit (58740d89a14c455cd96c58a6dc4a3478d8cb854c): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@rust-timer: 🔑 Insufficient privileges: not in try users |
cc @rust-lang/infra ^ - it looks like the permissions for |
Improvements up to 1.5%. |
can someone else take this over, I don't have a lot of capacity rn r? @michaelwoerister maybe, feel free to reassign |
Looks good to me. I'm still not a fan of all that unsafe code and most of it can be removed as c49297d demonstrates. I'd also prefer if But for now this PR is still a strict improvement. @bors r+ |
📌 Commit 11b3409 has been approved by |
☀️ Test successful - checks-actions |
… r=cjgillot Allow for reading raw bytes from rustc_serialize::Decoder without unsafe code The current `read_raw_bytes` method requires using `MaybeUninit` and `unsafe`. I don't think this is necessary. Let's see if a safe interface has any performance drawbacks. This is a followup to rust-lang#83273 and will make it easier to rebase rust-lang#82183. r? `@cjgillot`
Extracted from #83036 and #82780.