-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Change String
to &'static str
in ParseResult::Failure
.
#57461
Change String
to &'static str
in ParseResult::Failure
.
#57461
Conversation
This avoids 770,000 allocations when compiling the `html5ever` benchmark, reducing instruction counts by up to 2%.
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors try |
…<try> Change `String` to `&'static str` in `ParseResult::Failure`. This avoids 770,000 allocations when compiling the `html5ever` benchmark, reducing instruction counts by up to 2%.
@bors delegate+ Presuming nothing unexpected comes up in perf, r=me |
✌️ @nnethercote can now approve this pull request |
☀️ Test successful - status-travis |
wow! nice work! |
@rust-timer build 2fc3e64 |
Insufficient permissions to issue commands to rust-timer. |
@rust-timer build 2fc3e64 |
Success: Queued 2fc3e64 with parent 167ceff, comparison URL. |
Finished benchmarking try commit 2fc3e64 |
So it's a clear improvement (up to 3% instruction count reduction) for |
@bors r=simulacrum |
📌 Commit 46fa818 has been approved by |
⌛ Testing commit 46fa818 with merge 16c1d4587a6785ada863ef0ce4eb0143554dddb6... |
💔 Test failed - status-appveyor |
@bors retry |
@bors retry |
@lzutao: 🔑 Insufficient privileges: not in try users |
…tic-str, r=simulacrum Change `String` to `&'static str` in `ParseResult::Failure`. This avoids 770,000 allocations when compiling the `html5ever` benchmark, reducing instruction counts by up to 2%.
…tic-str, r=simulacrum Change `String` to `&'static str` in `ParseResult::Failure`. This avoids 770,000 allocations when compiling the `html5ever` benchmark, reducing instruction counts by up to 2%.
Rollup of 16 pull requests Successful merges: - #57351 (Don't actually create a full MIR stack frame when not needed) - #57353 (Optimise floating point `is_finite` (2x) and `is_infinite` (1.6x).) - #57412 (Improve the wording) - #57436 (save-analysis: use a fallback when access levels couldn't be computed) - #57453 (lldb_batchmode.py: try `import _thread` for Python 3) - #57454 (Some cleanups for core::fmt) - #57461 (Change `String` to `&'static str` in `ParseResult::Failure`.) - #57473 (std: Render large exit codes as hex on Windows) - #57474 (save-analysis: Get path def from parent in case there's no def for the path itself.) - #57494 (Speed up item_bodies for large match statements involving regions) - #57496 (re-do docs for core::cmp) - #57508 (rustdoc: Allow inlining of reexported crates and crate items) - #57547 (Use `ptr::eq` where applicable) - #57557 (resolve: Mark extern crate items as used in more cases) - #57560 (hygiene: Do not treat `Self` ctor as a local variable) - #57564 (Update the const fn tracking issue to the new metabug) Failed merges: r? @ghost
This avoids 770,000 allocations when compiling the
html5ever
benchmark, reducing instruction counts by up to 2%.