You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ca39ddb
Browse filesBrowse the repository at this point in the historyBrowse files
Rollup merge of #160536 - fereidani:utf16_units, r=clarfonthey
Inline `String::into_raw_parts` and reuse `from_utf16` optimization
1. I noticed that comment `// This isn't done via collect::<Result<_, _>>() for performance reasons.` explicitly states that this approach is wrong, but `from_utf16le` and `from_utf16be` are not using the same optimization.
2. I believe `into_raw_parts` is missing the `#[inline]` as any other similar functions in the standard library are marked either with `inline` or `inline(always)`.
This is also related to #48994; whenever that fix lands, optimizing `from_utf16_units` will results in these 3 functions getting optimized.
0 commit comments