Skip to content
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

[mono] Simplify of OffsetToStringData as it's done on coreclr #93987

Merged
merged 7 commits into from
Oct 26, 2023

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.

None yet

4 participants