Skip to content

Conversation

@thaystg
Copy link
Member

@thaystg thaystg commented Oct 25, 2023

No description provided.

@vargaz
Copy link
Contributor

vargaz commented Oct 25, 2023

Looks ok, but why is this useful ?

Copy link
Member

@lambdageek lambdageek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but I would prefer if the magic number was in the string class

@thaystg
Copy link
Member Author

thaystg commented Nov 3, 2023

@lambdageek it looks like this is causing performance issues, should we revert?

@lambdageek
Copy link
Member

@thaystg It looks like the interpreter regressed. Maybe put back the interpreter intrinsic? I guess for some reason it's not inlining that getter method and the constant?

or maybe add [MethodImpl(MethodImplOptions.AggressiveInlining)] to it?

liveans pushed a commit to liveans/dotnet-runtime that referenced this pull request Nov 9, 2023
…#93987)

* Change implementation of OffsetToStringData as it's done on coreclr

* Fix comment

* Remove more comments

* completely remove the comments

* Update RuntimeHelpers.Mono.cs

* Addressing comments

* Addressing @lambdageek comment.
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants