Skip to content

Revert change in StringBuilder.Append(char) - #74885

Merged
jkotas merged 1 commit into
dotnet:mainfrom
jkotas:fix-67448
Sep 1, 2022
Merged

Revert change in StringBuilder.Append(char)#74885
jkotas merged 1 commit into
dotnet:mainfrom
jkotas:fix-67448

Conversation

@jkotas

Copy link
Copy Markdown
Member

The change has a bad interaction with inlining heuristics.

Fixes#74158. Partial revert of #67448.

The change has a bad interaction with inlining heuristics.
Fixesdotnet#74158. Partial revert of dotnet#67448.
@ghostghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 31, 2022
@ghostghost assigned jkotasAug 31, 2022
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

The change has a bad interaction with inlining heuristics.

Fixes #74158. Partial revert of #67448.

Author:jkotas
Assignees:-
Labels:

area-CodeGen-coreclr

Milestone:-

@stephentoub

Copy link
Copy Markdown
Member

I assume this does in fact cause the method to be inlined again?

@jkotas

Copy link
Copy Markdown
MemberAuthor

I assume this does in fact cause the method to be inlined again?

Yes, in specific situations depending on the callsite, like in the BigInteger.Parse where it showed up on the radar in our perf runs.

A separate question is why BigInteger parsing uses StringBuilder to copy the parsed number around. It sounds like an opportunity for improvement.

@jkotas

Copy link
Copy Markdown
MemberAuthor

Test failures are #74896 and #74488

@jkotas
jkotas merged commit fccff6e into dotnet:mainSep 1, 2022
@jkotas

Copy link
Copy Markdown
MemberAuthor

/backport to release/7.0

@jkotas
jkotas deleted the fix-67448 branch September 1, 2022 00:27
@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/2967991509

@DrewScoggins

Copy link
Copy Markdown
Member

Last update was from August 20th. We have been having failures linked from the new installer that we are trying to take that I am investigating now.

@ghostghost locked as resolved and limited conversation to collaborators Oct 8, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance regressions in System.Numerics.Tests.Perf_BigInteger.Parse

6 participants

@jkotas@stephentoub@AndyAyersMS@DrewScoggins@jakobbotsch@JulieLeeMSFT