Skip to content

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Feb 10, 2023

This change adds a simple cache for the marshalling stubs. This cache improves performance of the test mentioned in the issue by 20+x.

Fixes #45100

This change adds a simple cache for the marshalling stubs. This cache improves performance of the test mentioned in the issue by 20+x.

Fixes dotnet#45100
@ghost ghost added the area-Interop-coreclr label Feb 10, 2023
@ghost ghost assigned jkotas Feb 10, 2023
@jkotas jkotas added the tenet-performance Performance related issue label Feb 10, 2023
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
@jkotas jkotas merged commit 38f635a into dotnet:main Feb 10, 2023
@jkotas jkotas deleted the issue-45100 branch February 10, 2023 16:57
@Symbai
Copy link

Symbai commented Feb 11, 2023

Will this fix be added to .NET 6 or do we have to wait for .NET8 ?

@jkotas
Copy link
Member Author

jkotas commented Feb 11, 2023

I am sorry backporting the fix to .NET 6 would not meet the servicing bug bar.

@Symbai
Copy link

Symbai commented Feb 11, 2023

I thought it might be as its a regression and a major one. Will wait for .NET 8 then.

@ghost ghost locked as resolved and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET 5.0+ Marshal.PtrToStructure is slower 8x than netcore3.1

4 participants