-
-
Notifications
You must be signed in to change notification settings - Fork 726
perf(diagnostics): Info::new trim string in place
#12506
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
perf(diagnostics): Info::new trim string in place
#12506
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #12506 will not alter performanceComparing Summary
Footnotes |
Merge activity
|
Small optimization. `Info::new` trim message `String` in place, rather than creating a new `String` and dropping the old one. Why doesn't Rust have `String::trim_in_place` and `String::trim_start_matches_in_place`?
bc9ddcc to
5c33fc7
Compare
7c1340d to
ce5d074
Compare

Small optimization.
Info::newtrim messageStringin place, rather than creating a newStringand dropping the old one.Why doesn't Rust have
String::trim_in_placeandString::trim_start_matches_in_place?